mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
introduce IPathMovementState
This commit is contained in:
parent
47eb0553b8
commit
1c8c746657
2 changed files with 9 additions and 2 deletions
|
@ -2,9 +2,10 @@ using UnityEngine;
|
|||
|
||||
namespace SanAndreasUnity.Behaviours.Peds.AI
|
||||
{
|
||||
public class EscapeState : BaseState
|
||||
public class EscapeState : BaseState, IPathMovementState
|
||||
{
|
||||
private readonly PathMovementData _pathMovementData = new PathMovementData();
|
||||
public PathMovementData PathMovementData => _pathMovementData;
|
||||
|
||||
|
||||
public override void UpdateState()
|
||||
|
|
|
@ -20,9 +20,15 @@ namespace SanAndreasUnity.Behaviours.Peds.AI
|
|||
}
|
||||
}
|
||||
|
||||
public class WalkAroundState : BaseState
|
||||
public interface IPathMovementState : IState
|
||||
{
|
||||
PathMovementData PathMovementData { get; }
|
||||
}
|
||||
|
||||
public class WalkAroundState : BaseState, IPathMovementState
|
||||
{
|
||||
private readonly PathMovementData _pathMovementData = new PathMovementData();
|
||||
public PathMovementData PathMovementData => _pathMovementData;
|
||||
|
||||
|
||||
public override void OnBecameActive()
|
||||
|
|
Loading…
Reference in a new issue