Exemple #1
0
	void Awake () {
		controller = GameObject.Find ("GameController")
			.GetComponent<GameController> ();
		soundManager = GameObject.Find ("SoundManager")
			.GetComponent<SoundManagerScript> ();
		hpUI = GameObject.Find ("HPStuff")
			.GetComponentInChildren<DragonHP> ();
		maxHealth = health;
	}
Exemple #2
0
 void Awake()
 {
     controller = GameObject.Find("GameController")
                  .GetComponent <GameController> ();
     soundManager = GameObject.Find("SoundManager")
                    .GetComponent <SoundManagerScript> ();
     hpUI = GameObject.Find("HPStuff")
            .GetComponentInChildren <DragonHP> ();
     maxHealth = health;
 }