次の方法で共有


GKState.WillExit(GKState) メソッド

定義

nextState移行する直前にStateMachine呼び出されます。

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

パラメーター

nextState
GKState
属性

注釈

これを呼び出しても、 の CurrentStateStateMachine プロパティは引き続きこの に設定されます GKState。 終了時に、そのプロパティが に nextState 変更され nextState、 の DidEnter(GKState) メソッドが呼び出されます。

適用対象