14 lines
401 B
C#
14 lines
401 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class Projectile_Stop : ProjectileBase
|
|
{
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
base.Set(_data);
|
|
transform.eulerAngles = Vector3.zero; // 근접 공격 판정은 회전 x
|
|
StartCoroutine(Co_Off());
|
|
}
|
|
|
|
IEnumerator Co_Off() { yield return new WaitForSeconds(m_ProjectTileData.LifeTime); Off(true); }
|
|
} |