示例#1
0
 // Use this for initialization
 void Start()
 {
     player  = GameObject.FindGameObjectWithTag("Player");
     eyeData = player.GetComponent <EyeTrackerData>();
     getDataFromScripts();
     eyeData.OnClueStatus += setClueStatus;
 }
示例#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>();
        }
    }