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