void Update() { if (CurrentHealth <= 0) { Destroy(gameObject); thePlayerStats.AddExperience(expToGive); } }