Exemple #1
0
 private void Awake()
 {
     if (instancia == null)
     {
         instancia = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
 void Awake()
 {
     _instance = this;
 }