Ejemplo n.º 1
0
        private void OnEnable()
        {
            aliasController = VRTK_DeviceFinder.GetScriptAliasController(gameObject);

            if (enableControllerCoroutine != null)
            {
                StopCoroutine(enableControllerCoroutine);
            }
            enableControllerCoroutine = StartCoroutine(Enable());
        }
Ejemplo n.º 2
0
 // Token: 0x0600174F RID: 5967 RVA: 0x0007CBB0 File Offset: 0x0007ADB0
 protected virtual void OnEnable()
 {
     this.aliasController = VRTK_DeviceFinder.GetScriptAliasController(base.gameObject);
     if (this.aliasController == null)
     {
         this.aliasController = base.gameObject;
     }
     this.index = VRTK_DeviceFinder.GetControllerIndex(base.gameObject);
     this.OnControllerEnabled(this.SetEventPayload(uint.MaxValue));
 }
Ejemplo n.º 3
0
        protected virtual void OnEnable()
        {
            aliasController = VRTK_DeviceFinder.GetScriptAliasController(gameObject);
            if (aliasController == null)
            {
                aliasController = gameObject;
            }

            index = VRTK_DeviceFinder.GetControllerIndex(gameObject);
            OnControllerEnabled(SetEventPayload());
        }
Ejemplo n.º 4
0
        protected virtual void OnEnable()
        {
            aliasController = VRTK_DeviceFinder.GetScriptAliasController(gameObject);
            if (aliasController == null)
            {
                aliasController = gameObject;
            }

            index = VRTK_DeviceFinder.GetControllerIndex(gameObject);
            SetControllerType();
            StartEmitControllerEnabledAtEndOfFrame();
            ManageControllerModelListeners(true);
        }
Ejemplo n.º 5
0
        protected virtual void OnEnable()
        {
            aliasController = VRTK_DeviceFinder.GetScriptAliasController(gameObject);
            if (aliasController == null)
            {
                aliasController = gameObject;
            }

            if (enableControllerCoroutine != null)
            {
                StopCoroutine(enableControllerCoroutine);
            }
            enableControllerCoroutine = StartCoroutine(Enable());
        }