public override void OnInspectorGUI() { DrawDefaultInspector(); StageInfoLoader info = (StageInfoLoader)target; if (GUILayout.Button("Load")) { info.LoadStage(); } if (GUILayout.Button("Save")) { info.SaveStage(); } }
public void Initialize(SceneType scene) { endFlag = false; nextScene = SceneType.Town; blurRate = 0.0f; stageInfoLoader = new StageInfoLoader(); stageInfoLoader.Initialize(); stageInfoLoader.LoadStageInfo(); if (!stageInfoLoader.IsLoad()) //エラー対策 { endFlag = true; } ui = new DungeonSelectUI(gameManager, gameDevice); ui.SetStageInfo(stageInfoLoader.Stages()); }