34 lines
643 B
C#
34 lines
643 B
C#
|
|
using UnityEngine;
|
|
|
|
public class IdleState : BaseState
|
|
{
|
|
public IdleState() : base()
|
|
{
|
|
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)
|
|
nextState = new RoamState();
|
|
Debug.Log($"### {this} Update STAGE");
|
|
}
|
|
|
|
protected override void Exit()
|
|
{
|
|
base.Exit();
|
|
|
|
Debug.Log($"### {this} Exit STAGE");
|
|
}
|
|
}
|