Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created February 17, 2022 12:09
Show Gist options
  • Save triacontane/26e27273c9324954f46a57ff4e31958f to your computer and use it in GitHub Desktop.
Save triacontane/26e27273c9324954f46a57ff4e31958f to your computer and use it in GitHub Desktop.
敵キャラの全回復(ステートはそのまま)
this.iterateEnemyIndex(-1, enemy => enemy.setHp(enemy.mhp));
@triacontane
Copy link
Author

-1 : 敵キャラ全員
0... : 指定したインデックスの敵キャラ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment