A downloadable tool

Download NowName your own price

Version: 1.0.2


Description:

Base classes to create custom state machines.


Package Mirrors:

gitnpmitch.io


Key Scripts & Components:

  1. public interface IState
    • Methods:
      • public abstract Boolean CanTransitionTo(IState state)
      • public abstract void Enter()
      • public abstract void Exit()
  2. 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)
  3. public abstract class ScriptedState : ScriptableObject
    • Methods:
      • public virtual Boolean CanTransitionTo(IState state)
      • public abstract void Enter()
      • public abstract void Exit()
  4. public abstract class State
    • Methods:
      • public virtual Boolean CanTransitionTo(IState state)
      • public abstract void Enter()
      • public abstract void Exit()
  5. 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)
  6. public abstract class StateRequestButton : MonoBehaviour
    • Methods:
      • public abstract void OnClick()

Download

Download NowName your own price

Click download now to get access to the following files:

com.iron-mountain.state-machines.unitypackage 4.2 kB

Leave a comment

Log in with itch.io to leave a comment.