Exemplo n.º 1
0
 void Awake()
 {
     if (s_instance == null) {
         s_instance = this;
     }
     else {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (s_instance == null)
     {
         s_instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }