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

24 lines
705 B
C#
Raw Normal View History

2025-01-16 06:07:21 +00:00
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.PCMove = false;
_data.shooter.Set_CurAnim(eAnim.Skill);
_data.shooter.Jump(2.1f, () =>
{
go_effect.gameObject.SetActive(true);
go_effect.Set(_data);
go_effect.transform.position = _data.target.Get_Center_position() + Vector3.up;
OptionInfo.Ins.PCMove = true;
_data.shooter.Play_Idle();
});
StartCoroutine(Co_Off(4f));
}
}