Exemple #1
0
	void Update(){
		if (kills == null)
			kills = GameObject.FindWithTag("MainCamera").GetComponent<killCounter>();
		if (levelUpScript == null)
			levelUpScript = GameObject.FindWithTag("MainCamera").GetComponent<LevelUpSystem>();
	}
Exemple #2
0
	void  Start (){	
		levelUpScript = GameObject.FindWithTag("MainCamera").GetComponent<LevelUpSystem>();
		kills = GameObject.FindWithTag("MainCamera").GetComponent<killCounter>();
	}