1
This commit is contained in:
39
Packages/Runtime/StateMachine/Tests/TestMonoStateMachine.cs
Normal file
39
Packages/Runtime/StateMachine/Tests/TestMonoStateMachine.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user