Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created August 13, 2025 15:49
Show Gist options
  • Select an option

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

Select an option

Save todorok1/d82001d6bd89a27aa92c4907286b70ac to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第117回 タイトル画面のつづきからのメニューを制御するクラス
/// <summary>
/// 決定ボタンが押された時の処理です。
/// </summary>
void OnPressedConfirmButton()
{
// 選択時の効果音を再生します。
AudioManager.Instance.PlaySe(SeNames.OK);
_canSelect = false;
_titleMenuManager.OnSelectedSlotId(_selectedSlot);
}
/// <summary>
/// キャンセルボタンが押された時の処理です。
/// </summary>
void OnPressedCancelButton()
{
// キャンセル時の効果音を再生します。
AudioManager.Instance.PlaySe(SeNames.Cancel);
StartCoroutine(HideProcess());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment