Exemplo n.º 1
0
 void OnCollisionEnter(Collision col)
 {
     if (gameObject.name != "enemy" && col.gameObject.name == "cube1")
     {
         red.enabled = true;
         count       = true;
         Destroy(gameObject);
         heal.healthKill(count);
     }
 }