Пример #1
0
	static void SwitchTask ()
	{
		if (level > 1)
			GameObject.Find ("task (" + (level - 1) + ")").GetComponent<Text> ().GetComponent<GUIEffects> ().DismissNow ();
		GameObject.Find ("task (" + (level) + ")").GetComponent<Text> ().enabled = true;
		GUIEffects guiEffect = GameObject.Find ("task (" + (level) + ")").GetComponent<Text> ().GetComponent<GUIEffects> ();
		guiEffect.ApplyRandomEffects ();
	}
Пример #2
0
 // when enabled
 void OnEnable()
 {
     effectScript = ( GUIEffects )target;
 }
Пример #3
0
	// when enabled
	void OnEnable()
	{
		effectScript = ( GUIEffects )target ;
	}