20 lines
408 B
C#
20 lines
408 B
C#
|
|
using Godot;
|
||
|
|
using PokemonLike.Library.Support;
|
||
|
|
|
||
|
|
namespace PokemonLike.Library.Utilities;
|
||
|
|
|
||
|
|
[GlobalClass]
|
||
|
|
public abstract partial class State : Node
|
||
|
|
{
|
||
|
|
[Export] public Node StateOwner;
|
||
|
|
|
||
|
|
public virtual void EnterState()
|
||
|
|
{
|
||
|
|
Logger.Info($"Entering {GetType().Name} state ...");
|
||
|
|
}
|
||
|
|
|
||
|
|
public virtual void ExitState()
|
||
|
|
{
|
||
|
|
Logger.Info($"Exiting {GetType().Name} state ...");
|
||
|
|
}
|
||
|
|
}
|