SHADE_Y3/Assets/Scripts/Gameplay/AIBehaviour/AIRework/BaseState.cs

39 lines
692 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SHADE;
namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework
{
public abstract class BaseState
{
protected string stateName = "Base State";
protected StateMachine machine;
protected BaseState(StateMachine stateMachine)
{
machine = stateMachine;
}
public virtual void OnEnter()
{
}
public abstract void Update();
public virtual void OnExit()
{
}
public string GetStateName()
{
return stateName;
}
}
}