Partager via


GKState.WillExit(GKState) Méthode

Définition

Appelé immédiatement avant la StateMachine transition vers nextState.

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

Paramètres

nextState
GKState
Attributs

Remarques

Lorsque cela est appelé, la CurrentState propriété de est StateMachine toujours définie sur ce GKState. Lors de la sortie, cette propriété devient nextState et nextStatela méthode de DidEnter(GKState) est appelée.

S’applique à