// Use this for initialization
        void Awake()
        {
            tunnelling = GetComponent <Tunnelling>();

            if (!GameManager_Main.instance.hasVREnvironment)
            {
                Destroy(tunnelling);
            }
            else
            {
                tunnelling.enabled = true;
            }
        }
Exemple #2
0
 void Awake()
 {
     _tunnelling = GetComponentInChildren <Tunnelling>();
     _char       = GetComponent <CharacterController>();
 }