public void notifyObserver(String objectType) { if (objectType == "lethal") { playerHealth.TakeDamage(collisionDamage); } else { playerHealth.BoostHealth(); } }