introduce IPathMovementState

This commit is contained in:
in0finite 2021-09-26 20:26:56 +02:00
parent 47eb0553b8
commit 1c8c746657
2 changed files with 9 additions and 2 deletions

View file

@ -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()

View file

@ -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()