private void Awake()
 {
     if (singleton != null)
     {
         Destroy(this);
     }
     else
     {
         singleton = this;
     }
 }
Exemple #2
0
 private void Awake()
 {
     instance = this;
 }