Inheritance: MonoBehaviour
 private void Awake()
 {
     if(instance){
         Destroy(instance.gameObject);
         instance = this;
     }
     else{
         instance = this;
     }
     gameOver = false;
     Jukebox.PlaySound2d("game_over_ready", 0.0f);
 }
Exemple #2
0
 public void Awake()
 {
     singleton = this;
 }