// Use this for initialization void Awake() { tunnelling = GetComponent <Tunnelling>(); if (!GameManager_Main.instance.hasVREnvironment) { Destroy(tunnelling); } else { tunnelling.enabled = true; } }
void Awake() { _tunnelling = GetComponentInChildren <Tunnelling>(); _char = GetComponent <CharacterController>(); }