17 lines
644 B
C#
17 lines
644 B
C#
public class Projectile_Grenade : ProjectileBase
|
|
{
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
base.Set(_data);
|
|
|
|
if (!DSUtil.CheckNull(gameObject))
|
|
StartCoroutine(Co_Move_Split(() =>
|
|
{
|
|
var enemies = Get_Enemies(transform, 3f);
|
|
for (int i = 0; i < enemies.Count; i++)
|
|
enemies[i].Get_Damage(_data.shooter.Get_DamageInfo(_data));
|
|
Off();
|
|
SoundInfo.Ins.Play_OneShot_byDistance(eSound.s013_etfx_explosion_grenade, transform.position);
|
|
}, _data.v3_StartPos, _data.target.Get_position(), 1.5f));
|
|
}
|
|
} |