public override void HandleEvent(EventMessage e) { if (e is PlayerHealthChangeMessage damageMessage) { playerHealthBar.DisplayHealth(damageMessage.currentHealth); } }
public override void HandleEvent(EventMessage e) { if (e is PlayerHealthChangeMessage damageMessage) { playerHealthBar.DisplayHealth(damageMessage.currentHealth); } }