Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     GetWaypoints();
     transform.position = waypoints[waypointIndex].transform.position;
     sunTracker         = GameObject.Find("GameMaster").GetComponent <SunTracker>();
     brainsTracker      = GameObject.Find("GameMaster").GetComponent <BrainsTracker>();
 }
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one instance of brains tracker found");
         return;
     }
     instance = this;
 }