Пример #1
0
 void Awake()
 {
     if (s_instance == null) {
         s_instance = this;
     }
     else {
         Destroy(gameObject);
     }
 }
Пример #2
0
 void Awake()
 {
     if (s_instance == null)
     {
         s_instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }