예제 #1
0
파일: GainXP.cs 프로젝트: KarateF22/GameX
	void Update(){
		if (kills == null)
			kills = GameObject.FindWithTag("MainCamera").GetComponent<killCounter>();
		if (levelUpScript == null)
			levelUpScript = GameObject.FindWithTag("MainCamera").GetComponent<LevelUpSystem>();
	}
예제 #2
0
파일: GainXP.cs 프로젝트: KarateF22/GameX
	void  Start (){	
		levelUpScript = GameObject.FindWithTag("MainCamera").GetComponent<LevelUpSystem>();
		kills = GameObject.FindWithTag("MainCamera").GetComponent<killCounter>();
	}