private void Awake() { Instance = this; handDetection = GetComponent <HandDetection>(); voiceControl = GetComponent <VoiceCommands>(); voiceControl.gesturesManager = this; }
void Start() { _tileParent = GetComponentInParent <WorldGridTile>(); _handDetection = FindObjectOfType <HandDetection>(); _cameraTransform = Camera.main.transform; _gesturesManager = Camera.main.GetComponent <GesturesManager>(); gridTile = GetComponentInParent <WorldGridTile>().GridTileCounterpart; }