private void OnCollisionEnter(Collision collision) { if (collision.collider.CompareTag("Projectile") || collision.collider.CompareTag("Goomba") || collision.collider.CompareTag("CanHurtEnemy") && hit == false) { hit = true; MissionDemolition.PointsGained(1); Invoke("Deactivate", 2f); } }
public void bowserDeath() { GameObject.Find("Icons").GetComponent <UI_IconDisplay>().UpdateIconDisplay(); MissionDemolition.PointsGained(10); Invoke("RemoveBowser", 1.5f); if (isGameOver()) { Goal.goalMet = true; } }