private bool UpdateWithdrawalSelection(object data) { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (!_isDecide && _isInputPossible) { if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { PreparaNext(isFoward: false); } else if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { PreparaNext(isFoward: true); } else { if (keyControl.GetDown(KeyControl.KeyName.MARU)) { _listHexExBtns[(int)_iSelectType].OnDecide(); return(true); } if (keyControl.GetDown(KeyControl.KeyName.SANKAKU)) { return(OnReqModeTacticalSituation()); } } } return(false); }
private bool UpdateUnitSelect(object data) { if (!this._isInputPossible) { return(false); } KeyControl keyControl = BattleCutManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.UP)) { this._uiCommandUnitSelect.Prev(); } else if (keyControl.GetDown(KeyControl.KeyName.DOWN)) { this._uiCommandUnitSelect.Next(); } else { if (keyControl.GetDown(KeyControl.KeyName.MARU)) { return(this._uiCommandUnitSelect.OnDecide()); } if (keyControl.GetDown(KeyControl.KeyName.BATU)) { return(this._uiCommandUnitSelect.OnCancel()); } } return(false); }
public bool Run() { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (!this._isDecide && this._isInputPossible) { using (List <UIHexButton> .Enumerator enumerator = this._listHexBtns.GetEnumerator()) { while (enumerator.MoveNext()) { UIHexButton current = enumerator.get_Current(); current.Run(); } } if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { this._btnIndex = this._setButtonIndex(this._btnIndex, false); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); this.SetAdvancingWithdrawalBtnState(this._btnIndex); } if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { this._btnIndex = this._setButtonIndex(this._btnIndex, true); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); this.SetAdvancingWithdrawalBtnState(this._btnIndex); } if (keyControl.GetDown(KeyControl.KeyName.MARU)) { this.DecideAdvancingWithDrawalBtn(this._listHexBtns.get_Item(this._btnIndex)); } } return(!this._isDecide); }
private bool UpdateSurfaceSelect(object data) { if (!this._isInputPossible) { return(false); } KeyControl keyControl = BattleCutManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.UP)) { this._uiCommandSurfaceList.Prev(); } else if (keyControl.GetDown(KeyControl.KeyName.DOWN)) { this._uiCommandSurfaceList.Next(); } else if (keyControl.GetDown(KeyControl.KeyName.BATU)) { this._uiCommandSurfaceList.RemoveUnit(); } else if (keyControl.GetDown(KeyControl.KeyName.SHIKAKU)) { this._uiCommandSurfaceList.RemoveUnitAll(); } else if (keyControl.GetDown(KeyControl.KeyName.MARU)) { this._uiCommandSurfaceList.OnSelectSurface(); } return(false); }
private bool UpdatePartnerSelect(object data) { KeyControl keyControl = StartupTaskManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { _ctrlPartnerSelect.press_Button(CtrlPartnerSelect.ButtonIndex.R); } else if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { _ctrlPartnerSelect.press_Button(CtrlPartnerSelect.ButtonIndex.L); } else { if (keyControl.GetDown(KeyControl.KeyName.MARU)) { return(_ctrlPartnerSelect.OnDecidePartnerShip()); } if (keyControl.GetDown(KeyControl.KeyName.BATU)) { return(_ctrlPartnerSelect.OnCancel()); } } return(false); }
public bool Run() { if (!_isInputPossible) { return(true); } if (_clsInput == null) { return(true); } if (_clsInput.GetDown(KeyControl.KeyName.RIGHT)) { PreparaNext(isFoward: true); } else if (_clsInput.GetDown(KeyControl.KeyName.LEFT)) { PreparaNext(isFoward: false); } else if (_clsInput.GetDown(KeyControl.KeyName.MARU)) { OnDecideDifficulty(_listDifficultyBtn[_nIndex].difficultKind); } else if (_clsInput.GetDown(KeyControl.KeyName.BATU)) { OnCancel(); } return(true); }
public bool Run() { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (!_isDecide && _isInputPossible) { foreach (UIHexButton listHexBtn in _listHexBtns) { listHexBtn.Run(); } if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { _btnIndex = _setButtonIndex(_btnIndex, isUp: false); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); SetAdvancingWithdrawalBtnState(_btnIndex); } if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { _btnIndex = _setButtonIndex(_btnIndex, isUp: true); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); SetAdvancingWithdrawalBtnState(_btnIndex); } if (keyControl.GetDown(KeyControl.KeyName.MARU)) { DecideAdvancingWithDrawalBtn(_listHexBtns[_btnIndex]); } } return(!_isDecide); }
protected override bool Run() { KeyControl keyControl = StartupTaskManager.GetKeyControl(); Main.Update(); if (Ime.IsDialogOpen) { return(true); } if (!keyControl.GetDown(KeyControl.KeyName.SELECT)) { if (keyControl.GetDown(KeyControl.KeyName.MARU)) { OnClickInputLabel(); } else { if (keyControl.GetDown(KeyControl.KeyName.START)) { if (_uiNameInput.value == string.Empty || _uiNameInput.value.Replace(" ", string.Empty).Replace("\u3000", string.Empty) == string.Empty) { return(true); } if (Utils.ChkNGWard(_uiNameInput.value)) { _ANI.Play("feather_ng"); return(true); } _uiNameInput.isSelected = false; _onNameSubmit(); return(false); } if (keyControl.GetDown(KeyControl.KeyName.BATU) && !StartupTaskManager.IsInheritStartup()) { _uiNameInput.isSelected = false; SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate { Application.LoadLevel(Generics.Scene.Title.ToString()); this.DelayActionFrame(2, delegate { SingletonMonoBehaviour <FadeCamera> .Instance.FadeIn(0.2f, null); }); }); return(true); } } } if (StartupTaskManager.GetMode() != StartupTaskManager.StartupTaskManagerMode.StartupTaskManagerMode_BEF) { return((StartupTaskManager.GetMode() == StartupTaskManager.StartupTaskManagerMode.StartupTaskManagerMode_ST) ? true : false); } return(true); }
public bool Run() { KeyControl keyControl = TitleTaskManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.MARU) || keyControl.GetDown(KeyControl.KeyName.BATU) || keyControl.GetDown(KeyControl.KeyName.SHIKAKU) || keyControl.GetDown(KeyControl.KeyName.SANKAKU) || keyControl.GetDown(KeyControl.KeyName.START)) { OnPress(); return(true); } _uiPressAnyKey.alpha = (float)Math.Abs(Math.Sin(Time.time * _strParam.interval)); return(_isPress); }
private bool UpdatePictureStoryShowConfirm(object data) { KeyControl keyControl = StartupTaskManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.MARU)) { _uiTutorialConfirmDialog.OnDecide(); return(true); } if (keyControl.GetDown(KeyControl.KeyName.BATU)) { _uiTutorialConfirmDialog.OnCancel(); return(true); } return(false); }
public bool Run() { if (!_isDecide && _isInputPossible) { foreach (UIHexButton listHexBtn in _listHexBtns) { listHexBtn.Run(); } if (_clsInput.keyState[14].down) { _btnIndex = _setButtonIndex(isUp: true); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); SetAdvancingWithdrawalBtnState(_btnIndex); } else if (_clsInput.keyState[10].down) { _btnIndex = _setButtonIndex(isUp: false); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); SetAdvancingWithdrawalBtnState(_btnIndex); } else if (_clsInput.GetDown(KeyControl.KeyName.MARU)) { DecideAdvancingWithDrawalBtn(_listHexBtns[_btnIndex]); } } return(!_isDecide); }
private IEnumerator WaitRoll() { switch (_iCompassType) { case CompassType.Super: OnCompassGirlMessage("はやくはやく\u30fc!"); break; case CompassType.Normal: OnCompassGirlMessage("よ\u30fcし、らしんばんまわすよ\u30fc!"); break; case CompassType.Stupid: OnCompassGirlMessage("え\u30fc?らしんばん、まわすの\u30fc?"); break; case CompassType.Wizard: _uiCompassGirl.transform.LTMoveLocalY(30f, 1f).setEase(LeanTweenType.easeInQuad).setLoopPingPong(); OnCompassGirlMessage("らしんばんをまわしてね!"); break; } KeyControl input = SortieBattleTaskManager.GetKeyControl(); while (!input.GetDown(KeyControl.KeyName.MARU) && !Input.GetMouseButton(0) && Input.touchCount == 0) { yield return(null); } yield return(null); }
protected override bool Run() { KeyControl keyControl = SortieBattleTaskManager.GetKeyControl(); if (_iMode != SortieMapTaskManagerMode.Formation) { if (keyControl.GetDown(KeyControl.KeyName.L)) { _shortCutSwitch.Switch(); } } else if (_shortCutSwitch.isShortCut) { _shortCutSwitch.Hide(); } if (_ctrlActiveBranching != null) { _ctrlActiveBranching.Update(); } _clsTasks.Update(); UpdateMode(); if (SortieBattleTaskManager.GetMode() != SortieBattleMode.SortieBattleMode_BEF) { return((SortieBattleTaskManager.GetMode() == SortieBattleMode.SortieBattleMode_ST) ? true : false); } return(true); }
public void Run() { if (_isInputPossible) { KeyControl keyControl = BattleCutManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.DOWN)) { PreparaNext(isForward: true); } else if (keyControl.GetDown(KeyControl.KeyName.UP)) { PreparaNext(isForward: false); } else if (keyControl.GetDown(KeyControl.KeyName.MARU)) { DecideFormation(_iSelectFormation); } } }
private IEnumerator PlayDesctiption() { KeyControl input = StartupTaskManager.GetKeyControl(); bool isWait2 = true; yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine()); PlayDescriotionVoice(nowPage); _uiGearButton.onClick.Clear(); _uiGearButton.onClick.Add(new EventDelegate(delegate { isWait2 = false; })); while (isWait2) { if (input.GetDown(KeyControl.KeyName.MARU)) { isWait2 = false; } yield return(null); } Utils.StopDescriptionVoice(); yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine()); isWait2 = true; _uiGearButton.onClick.Clear(); _uiGearButton.onClick.Add(new EventDelegate(delegate { isWait2 = false; })); while (isWait2) { if (input.GetDown(KeyControl.KeyName.MARU)) { isWait2 = false; } yield return(null); } yield return(Observable.TimerFrame(2, FrameCountType.EndOfFrame).StartAsCoroutine()); nowPage++; }
public bool Run() { if (this._isInputPossible) { KeyControl keyControl = TitleTaskManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.MARU)) { this.DecideAnim(); } else if (keyControl.GetDown(KeyControl.KeyName.DOWN)) { this.PreparaNext(false); } else if (keyControl.GetDown(KeyControl.KeyName.UP)) { this.PreparaNext(true); } } return(true); }
private bool updateWinRunkJudge(object data) { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (_isInputEnabled && keyControl.GetDown(KeyControl.KeyName.MARU)) { _uiGearBtn.Decide(); return(true); } return(_isWinRunkFinished); }
public bool Run() { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (this._isInputPossible && keyControl.GetDown(KeyControl.KeyName.SANKAKU)) { this.Hide(); return(true); } return(false); }
private bool updateEXPReflection(object data) { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (_isInputEnabled && keyControl.GetDown(KeyControl.KeyName.MARU)) { _uiGearBtn.Decide(); return(true); } return(_isEXPUpdateFinished); }
public void Run() { if (!this._isInputPossible) { return; } KeyControl keyControl = BattleCutManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.DOWN)) { this.PreparaNext(true); } else if (keyControl.GetDown(KeyControl.KeyName.UP)) { this.PreparaNext(false); } else if (keyControl.GetDown(KeyControl.KeyName.MARU)) { this.DecideFormation(this._iSelectFormation); } }
public bool Run() { if (!_isInputPossible) { return true; } KeyControl keyControl = BattleCutManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { PreparaNext(isFoward: true); } else if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { PreparaNext(isFoward: false); } else if (keyControl.GetDown(KeyControl.KeyName.MARU)) { DecideAdvancingWithDrawal(); } return true; }
public bool Update() { if (!_isInputPossible) { return(true); } KeyControl keyControl = SortieBattleTaskManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { PreparaNext(isFoward: false); } else if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { PreparaNext(isFoward: true); } else if (keyControl.GetDown(KeyControl.KeyName.MARU)) { OnDecideMapCell(_listUIMapCell[_nSelectIndex].Item2); } return(true); }
public bool Update() { if (!this._isInputPossible) { return(true); } KeyControl keyControl = SortieBattleTaskManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { this.PreparaNext(false); } else if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { this.PreparaNext(true); } else if (keyControl.GetDown(KeyControl.KeyName.MARU)) { this.OnDecideMapCell(this._listUIMapCell.get_Item(this._nSelectIndex).get_Item2()); } return(true); }
public bool Run() { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (!_isDecide && _isInputPossible) { if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { PreparaNext(isFoward: false); } if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { PreparaNext(isFoward: true); } if (keyControl.GetDown(KeyControl.KeyName.MARU)) { _listHexExBtns[_nIndex].OnDecide(); return(false); } } return(!_isDecide); }
public bool Run() { KeyControl keyControl = BattleCutManager.GetKeyControl(); if (_isInputPossible) { if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { PreparaNext(isFoward: false); } else if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { PreparaNext(isFoward: true); } if (keyControl.GetDown(KeyControl.KeyName.MARU)) { OnDecide(_nIndex); return(true); } } return(true); }
public bool Run() { if (!this._isInputPossible) { return(true); } KeyControl keyControl = BattleCutManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { this.PreparaNext(true); } else if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { this.PreparaNext(false); } else if (keyControl.GetDown(KeyControl.KeyName.MARU)) { this.Decide(); } return(true); }
public bool Run() { KeyControl keyControl = BattleTaskManager.GetKeyControl(); if (!this._isDecide && this._isInputPossible) { if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { this.PreparaNext(false); } if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { this.PreparaNext(true); } if (keyControl.GetDown(KeyControl.KeyName.MARU)) { this._listHexExBtns.get_Item(this._nIndex).OnDecide(); return(false); } } return(!this._isDecide); }
private void Update() { if (!_isAnimation || _keyController == null) { return; } _keyController.Update(); if (_isHistoryAnime) { if (_keyController.GetDown(KeyControl.KeyName.MARU)) { App.TimeScale(3f); } else if (_keyController.GetUp(KeyControl.KeyName.MARU)) { App.TimeScale(1f); } else if (!_keyController.GetDown(KeyControl.KeyName.BATU)) { } } }
protected override bool Run() { KeyControl keyControl = TitleTaskManager.GetKeyControl(); PSVitaMovie pSVitaMovie = TitleTaskManager.GetPSVitaMovie(); if (this._isInputPossible && pSVitaMovie.isPlaying && (keyControl.GetDown(KeyControl.KeyName.MARU) || keyControl.GetDown(KeyControl.KeyName.START) || Input.get_touchCount() != 0)) { this._isInputPossible = false; UIPanel maskPanel = TitleTaskManager.GetMaskPanel(); maskPanel.get_transform().GetChild(0).GetComponent <UITexture>().color = Color.get_black(); pSVitaMovie.ImmediateOnFinished(); } return(TitleTaskManager.GetMode() == TitleTaskManagerMode.TitleTaskManagerMode_BEF || TitleTaskManager.GetMode() == TitleTaskManagerMode.TitleTaskManagerMode_ST); }
private bool UpdateStarterSelect(object data) { KeyControl keyControl = StartupTaskManager.GetKeyControl(); if (keyControl.GetDown(KeyControl.KeyName.MARU)) { _ctrlStarterSelect.OnClickStarter(_ctrlStarterSelect.selectType); return(true); } if (keyControl.GetDown(KeyControl.KeyName.BATU)) { _ctrlStarterSelect.OnCancel(); return(true); } if (keyControl.GetDown(KeyControl.KeyName.LEFT)) { _ctrlStarterSelect.PreparaNext(isFoward: false); } else if (keyControl.GetDown(KeyControl.KeyName.RIGHT)) { _ctrlStarterSelect.PreparaNext(isFoward: true); } return(false); }