GKState.WillExit(GKState) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 nextState
la méthode de DidEnter(GKState) est appelée.