Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     livesTextTemp = gameObject.GetComponentsInChildren <Text>();
     foreach (Text text in livesTextTemp)
     {
         if (text.name == "LivesLeft")
         {
             livesText = text;
         }
     }
     getLives = GameObject.FindObjectOfType <RileyD_Lives>();
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     currScene = SceneManager.GetActiveScene();
     lives     = GameObject.FindObjectOfType <RileyD_Lives>();
     score     = GameObject.FindObjectOfType <RileyD_Score>();
 }