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