Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     player  = GameObject.FindGameObjectWithTag("Player");
     eyeData = player.GetComponent <EyeTrackerData>();
     getDataFromScripts();
     eyeData.OnClueStatus += setClueStatus;
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        eyetrackerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <EyeTrackerData>();
        compass          = GameObject.FindGameObjectWithTag("Compass");

        if (compass != null)
        {
            compassScript = compass.GetComponent <Compass>();
        }
    }