Class StateMachineMb
Implements
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: Fwt.Core.StateMachines
Assembly: fwt.core.dll
Syntax
public abstract class StateMachineMb : MonoBehaviour, IStateMachine
Fields
CurrentState
Declaration
public ISmState CurrentState
Field Value
| Type | Description |
|---|---|
| ISmState |
SortedStates
Declaration
public Dictionary<Type, SmStateMb> SortedStates
Field Value
| Type | Description |
|---|---|
| Dictionary<Type, SmStateMb> |
States
Declaration
public List<SmStateMb> States
Field Value
| Type | Description |
|---|---|
| List<SmStateMb> |
Methods
Awake()
Declaration
protected virtual void Awake()
GetState(int)
Declaration
public ISmState GetState(int stateIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | stateIndex |
Returns
| Type | Description |
|---|---|
| ISmState |
GetState(Type)
Declaration
public ISmState GetState(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type |
Returns
| Type | Description |
|---|---|
| ISmState |
GetState<TState>(Type)
Declaration
public TState GetState<TState>(Type type) where TState : ISmState
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type |
Returns
| Type | Description |
|---|---|
| TState |
Type Parameters
| Name | Description |
|---|---|
| TState |
OnValidateStates()
Declaration
[ContextMenu("Setup States")]
protected virtual void OnValidateStates()
Start()
Declaration
protected virtual void Start()
SwitchState(ISmState)
Declaration
public void SwitchState(ISmState newState)
Parameters
| Type | Name | Description |
|---|---|---|
| ISmState | newState |
SwitchState(int)
Declaration
public ISmState SwitchState(int stateIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | stateIndex |
Returns
| Type | Description |
|---|---|
| ISmState |
SwitchState<TState>()
Declaration
public TState SwitchState<TState>() where TState : ISmState
Returns
| Type | Description |
|---|---|
| TState |
Type Parameters
| Name | Description |
|---|---|
| TState |
SwitchState<TState, TContext>(TState, TContext)
Declaration
public void SwitchState<TState, TContext>(TState newState, TContext context) where TState : ISmStateWithContext<TContext>
Parameters
| Type | Name | Description |
|---|---|---|
| TState | newState | |
| TContext | context |
Type Parameters
| Name | Description |
|---|---|
| TState | |
| TContext |
SwitchState<TState, TContext>(TContext)
Declaration
public TState SwitchState<TState, TContext>(TContext context) where TState : ISmStateWithContext<TContext>
Parameters
| Type | Name | Description |
|---|---|---|
| TContext | context |
Returns
| Type | Description |
|---|---|
| TState |
Type Parameters
| Name | Description |
|---|---|
| TState | |
| TContext |
Tick()
Declaration
public virtual void Tick()