Exemplo n.º 1
0
 public void incrementNumOrbs()
 {
     ogc = GameObject.FindGameObjectWithTag ("OrbGUI").GetComponent<OrbGUIController> ();
     Debug.Log ("incrementNumOrbs called");
     numOrbs++;
     if (ogc != null)
         ogc.SetGUI (numOrbs);
     else
         Debug.Log ("doesn't have ogc");
     Debug.Log ("numOrbs: " + numOrbs);
 }
Exemplo n.º 2
0
 void OnLevelWasLoaded(int level)
 {
     if (level == 0)
         resetCheckPoint ();
     sm = GameObject.FindGameObjectWithTag ("SoundManager").GetComponent<SoundManager> ();
     ending1 = GameObject.FindGameObjectWithTag ("Ending1").GetComponent<Image>();
     ending2 = GameObject.FindGameObjectWithTag ("Ending2").GetComponent<Image>();
     ogc = GameObject.FindGameObjectWithTag ("OrbGUI").GetComponent<OrbGUIController> ();
     if (ogc != null)
         Debug.Log ("has ogc");
 }