33 lines
782 B
C#
33 lines
782 B
C#
using Gameplay.Building.Impl.Common;
|
|
using Gameplay.Building.Impl.Mine;
|
|
using UnityEngine;
|
|
namespace Gameplay.Building.Impl
|
|
{
|
|
public class BuildMine : UnitBuild
|
|
{
|
|
|
|
public int bulletId;
|
|
|
|
public BuildMine(uint id,
|
|
int troopId) : base(id, troopId)
|
|
{
|
|
}
|
|
|
|
protected override void _InitFsm()
|
|
{
|
|
base._InitFsm();
|
|
|
|
_fsm.Add(new MineStateIdle(this));
|
|
_fsm.Add(new CommonBuildStateDestroy(this));
|
|
_fsm.Add(new CommonBuildStateWaitRemove(this));
|
|
}
|
|
|
|
protected override void _AfterInitConfig()
|
|
{
|
|
base._AfterInitConfig();
|
|
|
|
bulletId = Mathf.RoundToInt(configData.rawConfig.FloatParams[0]);
|
|
}
|
|
}
|
|
}
|