Exemplo n.º 1
0
 void Awake()
 {
     if (ss == null)
     {
         ss = this;
     }
     else if (ss != this)
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 public void Awake()
 {
     instancia = this;
 }
Exemplo n.º 3
0
 void OnDestroy()
 {
     ss = null;
 }