Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     //Initialis the food, weapons and powerups vars, then update all UI.
     food     = GameObject.FindGameObjectWithTag("Statics").GetComponent <UIFood> ();
     weapons  = GameObject.FindGameObjectWithTag("Statics").GetComponent <UIWeapons> ();
     powerups = GameObject.FindGameObjectWithTag("Statics").GetComponent <Powerups> ();
     updateFoodUI();
     updateWeaponUI();
     updatePowerupGUI();
     ObjectiveHandler.inst.UpdateUI();
     //Object.DontDestroyOnLoad (transform.gameObject);
 }
Beispiel #2
0
	// Use this for initialization
	void Start () {
		//Initialis the food, weapons and powerups vars, then update all UI.
		food = GameObject.FindGameObjectWithTag ("Statics").GetComponent<UIFood> ();
		weapons = GameObject.FindGameObjectWithTag ("Statics").GetComponent<UIWeapons> ();
		powerups = GameObject.FindGameObjectWithTag ("Statics").GetComponent<Powerups> ();
		updateFoodUI ();
		updateWeaponUI ();
		updatePowerupGUI ();
		ObjectiveHandler.inst.UpdateUI ();
		//Object.DontDestroyOnLoad (transform.gameObject);
	}