예제 #1
0
 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> ();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     if (inst != null)
     {
         Destroy(gameObject);
     }
     else
     {
         inst = this;
         SoundManager.instance.playMusic(music, musicVolume);
     }
 }
예제 #3
0
 void Awake()
 {
     player = GameObject.FindWithTag("Player").GetComponent <PlayerController> ();
     ls     = GameObject.Find("LevelSounds").GetComponent <LevelSounds> ();
 }
예제 #4
0
 void Awake()
 {
     ls = GameObject.Find("LevelSounds").GetComponent <LevelSounds> ();
 }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     if (inst != null)
     {
         Destroy(gameObject);
     }
     else
     {
         inst = this;
         SoundManager.instance.playMusic(music, musicVolume);
     }
 }