public void ExecuteCollectableEffect() { PlayerController playerController = GetPlayerControler(); if (playerController != null) { IHealth playerHealth = playerController.GetPlayerHealth(); if (playerHealth != null) { playerHealth.AddHealth(_healthAmount); } } }
public void Heal(IHealth target, float amount) { target.AddHealth(amount); }