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