SanAndreasUnity/Assets/Scripts/Behaviours/Ped/States/DriveByFireState.cs
2020-05-31 19:09:53 +02:00

23 lines
468 B
C#

using UnityEngine;
namespace SanAndreasUnity.Behaviours.Peds.States
{
public class DriveByFireState : DriveByState, IFireState
{
public override void StartFiring()
{
// ignore
}
public virtual void StopFiring()
{
// switch back to drive-by state
m_ped.GetStateOrLogError<DriveByState>().EnterVehicle(this.CurrentVehicle, this.CurrentVehicleSeatAlignment);
}
}
}