Exemplo n.º 1
0
 // Use this for initialization
 void Awake()
 {
     if (hazardPoolInstance == null)
     {
         hazardPoolInstance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     SharedInstance = this;
 }