using UnityEngine; public class RecoverState : BaseState { public RecoverState(AICarDriver aiCarDriver, GameplayManager gameplayManager) : base(aiCarDriver, gameplayManager) { 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); }); } protected override void Exit() { base.Exit(); Debug.Log($"### {this} Exit STAGE"); } }