18 lines
415 B
C#
18 lines
415 B
C#
using UnityEngine;
|
|
|
|
[RequireComponent(typeof(BoxCollider))]
|
|
public class Projectile_Strait : ProjectileBase
|
|
{
|
|
public eProjectileStrait m_Direction = eProjectileStrait.Forward;
|
|
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
base.Set(_data);
|
|
StartCoroutine(Co_Move_Strait(m_Direction));
|
|
}
|
|
|
|
private void Reset()
|
|
{
|
|
GetComponent<BoxCollider>().isTrigger = true;
|
|
}
|
|
} |