Project_WL/Assets/Script/Character/Projectile/Skill/Skill_ShadowSlash.cs

24 lines
753 B
C#

using UnityEngine;
public class Skill_ShadowSlash : ProjectileBase
{
public Projectile_StopAndColliderControl go_effect;
public override void Set(ProjectileData _data)
{
go_effect.gameObject.SetActive(false);
base.Set(_data);
OptionInfo.Ins.Set_PCMove(_data.shooter, false);
_data.shooter.Set_CurAnim(eAnim.Skill);
_data.shooter.Jump(2.1f, 1f, 5f, 2f, () =>
{
go_effect.gameObject.SetActive(true);
go_effect.Set(_data);
go_effect.transform.position = _data.target.Get_Center_position() + Vector3.up;
OptionInfo.Ins.Set_PCMove(_data.shooter, true);
_data.shooter.Play_Idle();
});
StartCoroutine(Co_Off(4f));
}
}