Share via


GKStateMachine.EnterState Method

Definition

Overloads

Name Description
EnterState(GKState)

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

EnterState(Class)
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)

[Foundation.Export("enterState:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual bool EnterState(ObjCRuntime.Class stateClass);
[<Foundation.Export("enterState:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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