2024-01-16 14:03:06 +08:00
|
|
|
|
using cfg.SummonCfg;
|
|
|
|
|
|
using Gameplay.Common;
|
|
|
|
|
|
using Gameplay.Unit;
|
|
|
|
|
|
namespace Gameplay.Summon
|
|
|
|
|
|
{
|
|
|
|
|
|
public class SummonEmitBulletToLocal : BaseSummon
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public float emitInterval = 1f;
|
|
|
|
|
|
public int emitBulletId;
|
|
|
|
|
|
|
|
|
|
|
|
public SummonEmitBulletToLocal(DataSummon configData, uint id, GameUnit creator) : base(configData, id, creator)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void _OnInitFsm()
|
|
|
|
|
|
{
|
|
|
|
|
|
base._OnInitFsm();
|
|
|
|
|
|
|
|
|
|
|
|
_fsm.Add(new SummonStateEmitBulletToLocal(this));
|
|
|
|
|
|
|
|
|
|
|
|
_fsm.ChangeState(ESummonState.Idle);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void _OnInited()
|
|
|
|
|
|
{
|
|
|
|
|
|
base._OnInited();
|
|
|
|
|
|
|
2025-03-14 19:02:24 +08:00
|
|
|
|
emitInterval = _ReadFloatParam(0);
|
2024-01-16 14:03:06 +08:00
|
|
|
|
emitBulletId = _ReadIntParam(1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|