GKStateMachine.EnterState Method

Definition

Overloads

EnterState(GKState)

Attempts to transition from the current state to the specified state.

EnterState(Class)

Attempts to transition from the current state to the state that is identified by the specified stateClass.

EnterState(Type)

Attempts to transition from CurrentState to stateType.

EnterState(GKState)

Attempts to transition from the current state to the specified state.

public virtual bool EnterState (GameplayKit.GKState state);
abstract member EnterState : GameplayKit.GKState -> bool
override this.EnterState : GameplayKit.GKState -> bool

Parameters

state
GKState

Returns

Applies to

EnterState(Class)

Attempts to transition from the current state to the state that is identified by the specified stateClass.

[Foundation.Export("enterState:")]
protected virtual bool EnterState (ObjCRuntime.Class stateClass);
abstract member EnterState : ObjCRuntime.Class -> bool
override this.EnterState : ObjCRuntime.Class -> bool

Parameters

stateClass
Class

Returns

Attributes

Applies to

EnterState(Type)

Attempts to transition from CurrentState to stateType.

public virtual bool EnterState (Type stateType);
abstract member EnterState : Type -> bool
override this.EnterState : Type -> bool

Parameters

stateType
Type

Returns

true if the transition succeeded.

Applies to