private bool OnStartBattle(List <BattleCommand> commands)
        {
            if (!_clsCommandModel.SetCommand(commands))
            {
                return(false);
            }
            UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();

            navigation.Hide(Defines.PHASE_FADE_TIME, null);
            _clsState.Clear();
            _isInputPossible = false;
            Hide(delegate
            {
                Dlg.Call(ref _actOnFinished);
            });
            return(true);
        }
示例#2
0
 private bool OnStartBattle(List <BattleCommand> commands)
 {
     if (!_clsCommandModel.SetCommand(commands))
     {
         KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCancel2);
         return(false);
     }
     _clsState.Clear();
     _uiCommandUnitList.isColliderEnabled = false;
     Observable.Timer(TimeSpan.FromSeconds(0.5)).Subscribe(delegate
     {
         UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;
         battleNavigation.Hide();
         FadeOutOverlay().setOnComplete((Action) delegate
         {
             _uiBlur.enabled = false;
             Dlg.Call(ref _actOnFinished);
         });
     });
     return(true);
 }