C# Class StateMachine.CharacterStateMachine

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: framadan/Final_Project_Main Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

AddState() public méthode

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
Résultat void

AreStatesActive() public méthode

Returns true if all of the States passed in are active. False if one or more was not active.
public AreStatesActive ( ) : bool
Résultat bool

AreStatesInActive() public méthode

Returns true if all of the States passed in are Not Active. False if one or more was active.
public AreStatesInActive ( ) : bool
Résultat bool

DebugActiveStates() public méthode

public DebugActiveStates ( ) : void
Résultat void

IsStateActive() public méthode

public IsStateActive ( States state ) : bool
state States
Résultat bool

RemoveAllStates() public méthode

public RemoveAllStates ( ) : void
Résultat void

RemoveSimilarStates() public méthode

public RemoveSimilarStates ( States stateType, States stateToIgnore ) : void
stateType States
stateToIgnore States
Résultat void

RemoveState() public méthode

public RemoveState ( States state ) : void
state States
Résultat void