2026-01-07 12:00:57 +05:30
|
|
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class IdleState : BaseState
|
|
|
|
|
{
|
2026-01-07 19:38:03 +05:30
|
|
|
public IdleState(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();
|
|
|
|
|
|
|
|
|
|
// use a mod timer system and when timer completes then move onto the next state (RoamState)
|
2026-01-07 19:38:03 +05:30
|
|
|
base.Exit();
|
|
|
|
|
|
|
|
|
|
nextState = new AcquireTargetState(aiCarDriver, gameplayManager);
|
2026-01-07 12:00:57 +05:30
|
|
|
Debug.Log($"### {this} Update STAGE");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Exit()
|
|
|
|
|
{
|
|
|
|
|
base.Exit();
|
|
|
|
|
|
|
|
|
|
Debug.Log($"### {this} Exit STAGE");
|
|
|
|
|
}
|
|
|
|
|
}
|