Пример #1
0
 // Use this for initialization
 void Awake()
 {
     if (hazardPoolInstance == null)
     {
         hazardPoolInstance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Пример #2
0
 private void Awake()
 {
     SharedInstance = this;
 }