Exemplo n.º 1
0
 // Start is called before the first frame update
 void Awake()
 {
     if (instance == null || instance.Equals(null))
     {
         instance = this;
         health   = maxHealth;
     }
     else
     {
         Destroy(this);
     }
 }