Upravit

Sdílet prostřednictvím


GKState.WillExit(GKState) Method

Definition

Called immediately prior to the StateMachine transitioning to nextState.

[Foundation.Export("willExitWithNextState:")]
public virtual void WillExit (GameplayKit.GKState nextState);
abstract member WillExit : GameplayKit.GKState -> unit
override this.WillExit : GameplayKit.GKState -> unit

Parameters

nextState
GKState
Attributes

Remarks

When this is called, the CurrentState property of the StateMachine is still set to this GKState. Upon exit, that property changes to nextState and nextState's DidEnter(GKState) method is called.'

Applies to