void FindObjects(){
		playerHpScr = GameObject.Find("testplayer").GetComponent<PlayerHpScript>();
		abilitySwitchScr = GameObject.Find("AbilitySwitch").GetComponent<AbilitySwitchScript>();
		manaScr = GameObject.Find("Mana Bar").GetComponent<ManaScript>();
		enemiesManagerScr = GameObject.Find("enemyManager").GetComponent<EnemiesManagerScript>();
		playerManagerScr = GameObject.Find("name").GetComponent<PlayerManager>();
		pickupScr = GameObject.Find("name").GetComponent<Pickup>();
	}
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     m_instance = this;
     manaBar = GameObject.Find ("ManaBar").GetComponent<Image> ();
     SetMana(maxMana);
 }