Exemple #1
0
 private void Start()
 {
     if (PlayerPrefs.GetInt("sound") == 0)
     {
         shootSound        = this.GetComponent <AudioSource>();
         shootSound.volume = 0.5f;
     }
     uiManager  = uiManager.GetComponent <UIManager>();
     enemySpawn = enemySpawn.GetComponent <EnemySpawn>();
 }
Exemple #2
0
 private void Start()
 {
     uiManager  = uiManager.GetComponent <UIMamager>();
     enemySpawn = enemySpawn.GetComponent <EnemySpawn>();
 }