public void GotHit(StatsManager whoHitYou, int damage) { this.currentHealth -= damage; Instantiate(this.damageBurst, this.gameObject.transform.position, this.gameObject.transform.rotation); if (this.currentHealth <= 0) { if (this.gameObject.tag == "Enemy" && whoHitYou.gameObject.tag == "Player") { whoHitYou.AddExperience(this.ExperienceYeld()); } } }