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

24 lines
724 B
C#
Raw Normal View History

2025-01-16 21:09:41 +00:00
using UnityEngine;
public class Skill_DarkAmbush : ProjectileBase
{
public Projectile_StopAndColliderControl colliderControl;
public override void Set(ProjectileData _data)
{
_data.eStartPos = eProjectileStartPos.TargetCenter;
base.Set(_data);
transform.eulerAngles = Vector3.zero;
colliderControl.Set(_data);
_data.shooter.Set_Invisible(1.5f, null);
StartCoroutine(Co_Off(2f));
}
protected override void Off(bool forceoff = false, bool showtimeovereffect = true)
2025-01-16 21:09:41 +00:00
{
base.Off(forceoff, showtimeovereffect);
2025-02-09 06:50:27 +00:00
if (isProjectiledata && !DSUtil.CheckNull(m_ProjecTileData.shooter))
m_ProjecTileData.shooter.Play_Idle();
2025-01-16 21:09:41 +00:00
}
}