22 lines
673 B
C#
22 lines
673 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class Skill_EatSnack : ProjectileBase
|
|
{
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
_data.eStartPos = eProjectileStartPos.Custom;
|
|
_data.v3_StartPos = _data.target.Get_Center_position();
|
|
base.Set(_data);
|
|
var healrate = Get_DamageInfo(false, false).Damage + (IsStep(2) ? Get_AwakenData(2, 1) : 0f);
|
|
|
|
m_ProjectTileData.target.Heal(healrate);
|
|
if (IsStep(1)) m_ProjectTileData.target.Heal_MP(healrate);
|
|
|
|
Set_ReduceCoolTime_byStep(3);
|
|
|
|
StartCoroutine(Co_Off());
|
|
}
|
|
|
|
IEnumerator Co_Off() { yield return new WaitForSeconds(1.5f); Off(true); }
|
|
} |