Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created July 18, 2025 06:06
Show Gist options
  • Select an option

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

Select an option

Save todorok1/d75d44a5c25fda4a808a21e7c2c398b1 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第109回 ゲームを開始する際の情報を保持するクラス
namespace SimpleRpg
{
/// <summary>
/// ゲームを開始する際の情報を保持するクラスです。
/// </summary>
public static class GameStartInfoHolder
{
/// <summary>
/// はじめからゲームを開始するかどうかを示すフラグです。
/// </summary>
public static bool isNewGame = true;
/// <summary>
/// つづきからゲームを開始する場合のセーブデータのスロットIDです。
/// </summary>
public static int loadedSlotId = -1;
/// <summary>
/// 初期化用のシーンを通ったかどうかを示すフラグです。
/// </summary>
public static bool isThroughInitScene;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment