public DebugMenu(PauseMenu privousScene, Stage stage) : base(privousScene) { sceneTitle = "Debug Menu"; this.stage = stage; menuString = new string[] { "Back", //"change on/off", "inDebugMode", "isMuted", "visibleSword", //"score", "syoryuMode", "thrustChargeMode", "twoButtonMode", //"empty", }; contextString = new string[] { "戻る", "デバッグモードをオン/オフにします", "ミュートのオン/オフ", "ゲーム中、剣の判定矩形を表示します", //"ゲーム中、画面上にスコアを表示します", "斬り上げ時のモーションを変更します", "連続突きを発動するアサインを変更します", "攻撃を2ボタンで行うモードをオン/オフします", //"空の項目", }; buttonNum = menuString.Length; button = new Button[buttonNum]; for (int i = 0; i < buttonNum; i++) { button[i].color = Color.Blue; button[i].name = menuString[i]; } Load(); }