Edit

Share via


GKStateMachine.CanEnterState Method

Definition

Overloads

CanEnterState(GKState)

Returns true if a transition from the current state of the state machine leads to state. Otherwise, returns false.

CanEnterState(Class)

Returns true if a transition from the current state of the state machine leads to stateClass. Otherwise, returns false.

CanEnterState(Type)

Whether a transition from CurrentState to stateType is valid.

CanEnterState(GKState)

Returns true if a transition from the current state of the state machine leads to state. Otherwise, returns false.

public bool CanEnterState(GameplayKit.GKState state);

Parameters

state
GKState

Returns

Applies to

CanEnterState(Class)

Returns true if a transition from the current state of the state machine leads to stateClass. Otherwise, returns false.

[Foundation.Export("canEnterState:")]
protected virtual bool CanEnterState(ObjCRuntime.Class stateClass);

Parameters

stateClass
Class

Returns

Attributes

Applies to

CanEnterState(Type)

Whether a transition from CurrentState to stateType is valid.

public bool CanEnterState(Type stateType);

Parameters

stateType
Type

Must be a subclass of GKState

Returns

Applies to