Exemple #1
0
 void Awake()
 {
     if (ss == null)
     {
         ss = this;
     }
     else if (ss != this)
     {
         Destroy(gameObject);
     }
 }
 public void Awake()
 {
     instancia = this;
 }
Exemple #3
0
 void OnDestroy()
 {
     ss = null;
 }