private bool HandleOptionsInput() { if (cursor.back()) { if (!conf1options) { SignalFailure(); RemoveCancelButton(); ToggleDisplayOptions(false); conf1 = false; } else if (PD.gameType != PersistData.GT.Arcade) { conf1options = false; SignalFailure(); } return(true); } bool pressed = false; if (PD.gameType != PersistData.GT.Online) { begin.GetComponent <SpriteRenderer>().sprite = beginSheet[0]; } if (PD.usingMouse) { HandleOptionsClicker(); } cursorOpDisplay.SetVisibility(true); cursorOp.DoUpdate(); cursorOpDisplay.UpdatePosition(cursorOp.getY()); pressed = SwitchVal(cursorOp.getY(), cursorOp.leftP() ? -1 : (cursorOp.rightP() ? 1 : 0)); if (cursorOp.launchOrPause()) { if ((PD.gameType == PersistData.GT.Versus && cursorOp.getY() == 1) || cursorOp.getY() == 0) { conf1options = true; } else if (PD.gameType == PersistData.GT.Online) { HandleOnlineSelect(); } else { cursorOp.setY(0); pressed = true; } } UpdateOptionsSelectorArrowVisibility(); return(pressed); }
public void Update() { UpdateMouseInput(); if (saved) { if (confirmButton != null) { confirmButton.SetActive(false); } if (clicker.isDown() || nameCursor.launchOrPause()) { PD.MoveFromHighScoreScreen(); } return; } nameCursor.DoUpdate(); if (PD.usingMouse) { MouseInput(); } KeyboardInput(); }