Exemplo n.º 1
0
	void Awake ()
	{
		mainScript = GameObject.FindWithTag ("MainCamera").GetComponent<lld_MainController> ();
		newWorld = transform;
		while (newWorld && !newWorld.gameObject.CompareTag("World")) {
			newWorld = newWorld.parent;
		}
		victorySound = GetComponent<AudioSource> ();
	}
Exemplo n.º 2
0
 void Awake()
 {
     mainScript = GameObject.FindWithTag("MainCamera").GetComponent <lld_MainController> ();
     newWorld   = transform;
     while (newWorld && !newWorld.gameObject.CompareTag("World"))
     {
         newWorld = newWorld.parent;
     }
     victorySound = GetComponent <AudioSource> ();
 }