36 lines
746 B
C#
Raw Permalink Normal View History

2026-01-07 12:00:57 +05:30
using UnityEngine;
public class RecoverState : BaseState
{
public RecoverState(AICarDriver aiCarDriver, GameplayManager gameplayManager) : base(aiCarDriver, gameplayManager)
2026-01-07 12:00:57 +05:30
{
Debug.Log($"### {this} constructor");
}
protected override void Enter()
{
base.Enter();
Debug.Log($"### {this} Enter STAGE");
}
protected override void Update()
{
base.Update();
Debug.Log($"### {this} Update STAGE");
aiCarDriver.DoReverse(() =>
{
base.Exit();
nextState = new RoamState(aiCarDriver, gameplayManager);
});
2026-01-07 12:00:57 +05:30
}
protected override void Exit()
{
base.Exit();
Debug.Log($"### {this} Exit STAGE");
}
}