Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created August 26, 2025 08:26
Show Gist options
  • Select an option

  • Save todorok1/194bea45a4fc080463b46ce254ae033e to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/194bea45a4fc080463b46ce254ae033e to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第126回 メニューウィンドウで魔法の使用処理を制御するクラス
/// <summary>
/// 魔法のアクションを処理するコルーチンです。
/// </summary>
IEnumerator ProcessMagicActionCoroutine(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