コード例 #1
0
    public void ExecuteCollectableEffect()
    {
        PlayerController playerController = GetPlayerControler();

        if (playerController != null)
        {
            IHealth playerHealth = playerController.GetPlayerHealth();
            if (playerHealth != null)
            {
                playerHealth.AddHealth(_healthAmount);
            }
        }
    }
コード例 #2
0
 public void Heal(IHealth target, float amount)
 {
     target.AddHealth(amount);
 }