Initial commit

This commit is contained in:
Mausham
2025-12-26 17:56:05 -08:00
commit 7cb0a26dae
453 changed files with 53483 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Darkmatter.Core;
using UnityEngine;
namespace Darkmatter.Domain
{
public abstract class StateMachine
{
public IState CurrentState { get; private set; }
public void ChangeState(IState state)
{
CurrentState?.Exit();
CurrentState = state;
CurrentState?.Enter();
}
public void Update()
{
CurrentState.Update();
}
public void LateUpdate()
{
CurrentState.LateUpdate();
}
}
}