C# Класс StateMachine.CharacterStateMachine

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddState ( States state, float time, System.Action onEnterFunction = null, System.Action onUpdateFunction = null, System.Action onExitFunction = null ) : void
AreStatesActive ( ) : bool

Returns true if all of the States passed in are active. False if one or more was not active.

AreStatesInActive ( ) : bool

Returns true if all of the States passed in are Not Active. False if one or more was active.

DebugActiveStates ( ) : void
IsStateActive ( States state ) : bool
RemoveAllStates ( ) : void
RemoveSimilarStates ( States stateType, States stateToIgnore ) : void
RemoveState ( States state ) : void

Описание методов

AddState() публичный Метод

public AddState ( States state, float time, System.Action onEnterFunction = null, System.Action onUpdateFunction = null, System.Action onExitFunction = null ) : void
state States
time float
onEnterFunction System.Action
onUpdateFunction System.Action
onExitFunction System.Action
Результат void

AreStatesActive() публичный Метод

Returns true if all of the States passed in are active. False if one or more was not active.
public AreStatesActive ( ) : bool
Результат bool

AreStatesInActive() публичный Метод

Returns true if all of the States passed in are Not Active. False if one or more was active.
public AreStatesInActive ( ) : bool
Результат bool

DebugActiveStates() публичный Метод

public DebugActiveStates ( ) : void
Результат void

IsStateActive() публичный Метод

public IsStateActive ( States state ) : bool
state States
Результат bool

RemoveAllStates() публичный Метод

public RemoveAllStates ( ) : void
Результат void

RemoveSimilarStates() публичный Метод

public RemoveSimilarStates ( States stateType, States stateToIgnore ) : void
stateType States
stateToIgnore States
Результат void

RemoveState() публичный Метод

public RemoveState ( States state ) : void
state States
Результат void