29 lines
550 B
C#
29 lines
550 B
C#
using LTGame;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Gameplay.Bullet
|
|
{
|
|
public class BulletStateDestroy: BaseBulletState
|
|
{
|
|
|
|
public BulletStateDestroy(ViewBullet owner): base(owner, EBulletState.Destroy)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void _OnEnter(NBaseState exitState, object param)
|
|
{
|
|
base._OnEnter(exitState, param);
|
|
|
|
owner.needRemove = true;
|
|
owner.Destroy();
|
|
|
|
}
|
|
|
|
}
|
|
}
|