24 lines
692 B
C#
24 lines
692 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class Projectile_Stop : ProjectileBase
|
|
{
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
base.Set(_data);
|
|
m_ShowTimeOverEffect = false; // 근접 공격은 시간 다 됐을 때 이펙트 표시 x
|
|
transform.eulerAngles = Vector3.zero; // 근접 공격 판정은 회전 x
|
|
StartCoroutine(Co_Off(m_ProjecTileData.LifeTime));
|
|
}
|
|
|
|
public void Set_FollowShooter() { StartCoroutine(Co_Follow()); }
|
|
|
|
IEnumerator Co_Follow()
|
|
{
|
|
while (true)
|
|
{
|
|
transform.position = m_ProjecTileData.shooter.Get_CenterPositionFoward();
|
|
yield return null;
|
|
}
|
|
}
|
|
} |