Beispiel #1
0
    private void Awake()
    {
        Instance = this;

        handDetection = GetComponent <HandDetection>();
        voiceControl  = GetComponent <VoiceCommands>();
        voiceControl.gesturesManager = this;
    }
Beispiel #2
0
    void Start()
    {
        _tileParent      = GetComponentInParent <WorldGridTile>();
        _handDetection   = FindObjectOfType <HandDetection>();
        _cameraTransform = Camera.main.transform;
        _gesturesManager = Camera.main.GetComponent <GesturesManager>();

        gridTile = GetComponentInParent <WorldGridTile>().GridTileCounterpart;
    }