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