Esempio n. 1
0
 public void Awake()
 {
     if (instance == null) {
         instance = this;
         DontDestroyOnLoad (this);
     } else {
         DestroyImmediate(gameObject);
     }
 }
 public void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(this);
     }
     else
     {
         DestroyImmediate(gameObject);
     }
 }
Esempio n. 3
0
 void Awake()
 {
     instance = this;
 }