void Awake() { gp = GameObject.Find("GamePlay").GetComponent <GamePlay> (); ls = GameObject.Find("LevelSounds").GetComponent <LevelSounds> (); spawnMax = GameObject.Find("SpawnMax").GetComponent <SpawnUp> (); spawnMin = GameObject.Find("SpawnMin").GetComponent <SpawnUp> (); spawnObj = GameObject.Find("SpawnControl").GetComponent <SpawnControl> (); }
// Use this for initialization void Start() { if (inst != null) { Destroy(gameObject); } else { inst = this; SoundManager.instance.playMusic(music, musicVolume); } }
void Awake() { player = GameObject.FindWithTag("Player").GetComponent <PlayerController> (); ls = GameObject.Find("LevelSounds").GetComponent <LevelSounds> (); }
void Awake() { ls = GameObject.Find("LevelSounds").GetComponent <LevelSounds> (); }