LoginSignup
0

More than 5 years have passed since last update.

Phaser Button

Posted at

pendingDestroy : boolean

ゲームオブジェクトは、pendingDestroyが次のロジック更新時にdestroyメソッドを呼び出すようにフラグが設定されていることです。 次の更新時に破棄するオブジェクトにフラグを付けることができるように、これを直接設定することができます。

これは、ボタンや他の入力イベントなどの独自のコールバックの1つからオブジェクトを破棄したい場合に非常に便利です。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0