示例#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>();
	}