com.iron-mountain.state-machines
v1.0.3
Published
Base classes to create custom state machines.
Downloads
5
Readme
State Machines
Version: 1.0.2
Description:
Base classes to create custom state machines.
Package Mirrors:
Key Scripts & Components:
- public interface IState
- Methods:
- public abstract Boolean CanTransitionTo(IState state)
- public abstract void Enter()
- public abstract void Exit()
- Methods:
- public interface IStateMachine`1
- Properties:
- public T PreviousState { get; set; }
- public T CurrentState { get; set; }
- Methods:
- public abstract Boolean RequestState(T requestedState)
- public abstract void RequestPreviousState()
- public abstract void ChangeToState(T newState)
- Properties:
- public abstract class ScriptedState : ScriptableObject
- Methods:
- public virtual Boolean CanTransitionTo(IState state)
- public abstract void Enter()
- public abstract void Exit()
- Methods:
- public abstract class State
- Methods:
- public virtual Boolean CanTransitionTo(IState state)
- public abstract void Enter()
- public abstract void Exit()
- Methods:
- public class StateMachine`1
- Actions:
- public event Action OnStateChange
- Properties:
- public T PreviousState { get; set; }
- public T CurrentState { get; set; }
- public Type PreviousStateType { get; set; }
- public Type CurrentStateType { get; set; }
- public float TimeOfLastStateChange { get; }
- public float SecondsSinceLastStateChange { get; }
- public float UnscaledTimeOfLastStateChange { get; }
- public float UnscaledSecondsSinceLastStateChange { get; }
- Methods:
- public virtual Boolean RequestState(T requestedState)
- public virtual void RequestPreviousState()
- public virtual void ChangeToState(T newState)
- public StateMachine`1 Initialize(T initialState)
- Actions:
- public abstract class StateRequestButton : MonoBehaviour
- Methods:
- public abstract void OnClick()
- Methods: