Beispiel #1
0
 void Awake()
 {
     if (!instance)
     {
         instance = this;
     }
 }
Beispiel #2
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(gameObject);
         return;
     }
 }
Beispiel #3
0
 private void Awake()
 {
     current = this;
 }
 private void Awake()
 {
     Instance = this;
 }
 void Awake()
 {
     instance = this;
 }