private void OnSelectedPracticeMenu(UIPracticeMenu.SelectType selectType) { if (mStateManager.CurrentState != State.PracticeTypeSelect) { return; } switch (selectType) { case UIPracticeMenu.SelectType.BattlePractice: { if (mPracticeManager.IsValidBattlePractice()) { mPracticeMenu.SetKeyController(null); mStateManager.PushState(State.BattlePractice); break; } DeckModel currentDeck2 = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck; List <IsGoCondition> list2 = mPracticeManager.IsValidPractice(currentDeck2.Id); if (0 < list2.Count()) { string mes2 = Util.IsGoConditionToString(list2[0]); CommonPopupDialog.Instance.StartPopup(mes2); } else { string mes3 = "演習可能な艦隊がありません"; CommonPopupDialog.Instance.StartPopup(mes3); } break; } case UIPracticeMenu.SelectType.DeckPractice: { if (mPracticeManager.IsValidDeckPractice()) { mPracticeMenu.SetKeyController(null); mStateManager.PushState(State.DeckPractice); break; } DeckModel currentDeck = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck; List <IsGoCondition> list = mPracticeManager.IsValidPractice(currentDeck.Id); string mes = Util.IsGoConditionToString(list[0]); CommonPopupDialog.Instance.StartPopup(mes); break; } case UIPracticeMenu.SelectType.Back: mStateManager.PopState(); break; } }