33 lines
754 B
C#
33 lines
754 B
C#
using Gameplay.Vehicle.Impl;
|
|
using LTGame;
|
|
namespace Gameplay.Vehicle.State
|
|
{
|
|
public class VehicleStateStop : BaseVehicleState
|
|
{
|
|
|
|
private float _length = 0.867f;
|
|
|
|
public VehicleStateStop(NormalVehicle owner) : base(owner, EVehicleState.Stop)
|
|
{
|
|
}
|
|
|
|
protected override void _OnEnter(NBaseState exitState,
|
|
object param)
|
|
{
|
|
base._OnEnter(exitState, param);
|
|
|
|
owner.vAnim.targetAnim = "stop";
|
|
}
|
|
|
|
protected override void _OnRunning()
|
|
{
|
|
base._OnRunning();
|
|
if (passTime > _length)
|
|
{
|
|
isFinished = true;
|
|
nextState = EVehicleState.Idle;
|
|
}
|
|
}
|
|
}
|
|
}
|