private void onMoveButtonPressed(Signal signal) { if (CutSceneManager.Inst.ActiveSlideIsEndGame) { SceneManager.LoadScene("MainScene"); } if (CutSceneManager.Inst.InputDelayExpired) { MoveButtonPressedSignal moveButtonPressedSignal = (MoveButtonPressedSignal)signal; if (moveButtonPressedSignal.moveButton == MoveButton.ATTACK || moveButtonPressedSignal.moveButton == MoveButton.SWITCH) { if (CutSceneManager.Inst.ActiveSlideIsLastInSequence) { nextState = new FinalFadeOutState(); } else if (CutSceneManager.Inst.GetNextFadeType() == FadeType.CROSS) { nextState = new CrossFadeState(); } else { nextState = new FadeThroughBlackState(); } } } }
private void onMoveButtonPressed(Signal signal) { MoveButtonPressedSignal moveButtonPressedSignal = (MoveButtonPressedSignal)signal; if (!infoMode && (moveButtonPressedSignal.moveButton == MoveButton.JUMP || moveButtonPressedSignal.moveButton == MoveButton.DOWN)) { setSelected(!selected); } if (moveButtonPressedSignal.moveButton == MoveButton.ATTACK || moveButtonPressedSignal.moveButton == MoveButton.SWITCH) { if (selected) { setInfoMode(!infoMode); } else { SignalManager.Inst.RemoveListener <MoveButtonPressedSignal>(onMoveButtonPressed); } } }