Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created August 13, 2025 09:46
Show Gist options
  • Select an option

  • Save todorok1/961a89e83310da5a6944364df7ffb91e to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/961a89e83310da5a6944364df7ffb91e to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第116回 戦闘中の魔法アクションを処理するクラス
/// <summary>
/// 魔法のアクションを処理するコルーチンです。
/// </summary>
IEnumerator ProcessMagicActionCoroutine(BattleAction action, MagicData magicData)
{
// 魔法の詠唱時の効果音を再生します。
AudioManager.Instance.PlaySe(SeNames.Magic);
// 魔法の効果を処理します。
foreach (var magicEffect in magicData.magicEffects)
{
// 以降は省略
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment