Example #1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (gravityDistorter == null)
            {
                gravityDistorter = GetComponent <DistorterGravity>();
            }

            if (MixedRealityToolkit.IsInitialized && TeleportSystem != null && !lateRegisterTeleport)
            {
                TeleportSystem.Register(gameObject);
            }
        }
Example #2
0
 protected override void OnEnable()
 {
     base.OnEnable();
     SetCursor();
     BaseCursor?.SetVisibility(true);
     TeleportSystem?.Register(gameObject);
 }