public void OnNotify(string eventName, object broadcaster, object parameter = null) { if (eventName.Equals(GlobalHelper.DamageDealt)) { if (parameter == null) { return; } var damage = Mathf.Abs((int)parameter); AbilityOwner.AddHealth(damage); var message = $"{AbilityOwner.Name} gains {damage} health!"; var eventMediator = Object.FindObjectOfType <EventMediator>(); eventMediator.Broadcast(GlobalHelper.SendMessageToConsole, this, message); } }