40 lines
859 B
C#
40 lines
859 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using BITKit;
|
|
using BITKit.StateMachine;
|
|
namespace BITKit.StateMachine.Tests
|
|
{
|
|
public interface ITestState : IState { }
|
|
[System.Serializable]
|
|
public class TestState : ITestState
|
|
{
|
|
public void Initialize()
|
|
{
|
|
}
|
|
|
|
public void OnStateEnter(IState old)
|
|
{
|
|
}
|
|
|
|
public void OnStateExit(IState old, IState newState)
|
|
{
|
|
}
|
|
|
|
public void OnStateUpdate()
|
|
{
|
|
}
|
|
}
|
|
[System.Serializable]
|
|
public class TestState1 : TestState { }
|
|
[System.Serializable]
|
|
public class TestState2 : TestState { }
|
|
[System.Serializable]
|
|
public class TestState3 : TestState { }
|
|
[System.Serializable]
|
|
public class TestMonoStateMachine : MonoStateMachine<ITestState>
|
|
{
|
|
|
|
}
|
|
}
|