19 lines
542 B
C#
19 lines
542 B
C#
using Photon.Pun;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "PotionAbility", menuName = "RiftMayhem/AbilitySystem/Abilities/PotionAbility", order = 1)]
|
|
public class PotionAbility : BaseAbility
|
|
{
|
|
[Header("PotionPercentValue:")]
|
|
public float healingPercent;
|
|
|
|
public override void Execute(PhotonView user, Taggable userTag)
|
|
{
|
|
userHealth = userTag.GetComponent<Health>();
|
|
|
|
userHealth.ChangeValue(userHealth.GetMaxValue() * healingPercent);
|
|
}
|
|
}
|