HandRenderClose.cs 797 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class HandRenderClose : MonoBehaviour {
  5. [SerializeField]
  6. bool isShowHandRender = false;
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. StartCoroutine(SetInputSystem());
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. }
  16. IEnumerator SetInputSystem() {
  17. yield return new WaitUntil(() => API_GSXR_Module_InputSystem.GSXR_Get_Instance()
  18. && API_GSXR_Module_InputSystem_GGT26Dof.GSXR_GGTLeft.inputDeviceGGT26DofPartUI.modelGGT26Dof.ActiveHandModel!=null);
  19. API_GSXR_Module_InputSystem_GGT26Dof.GSXR_GGTLeft.inputDeviceGGT26DofPartUI.modelGGT26Dof.ActiveHandModel.ShowHandRender = isShowHandRender;
  20. }
  21. }