public void MoveUp() { if (currentSelection == NodeUISelection.Close) { currentSelection = NodeUISelection.Details; detailsB.Select(); } else if (currentSelection == NodeUISelection.Details) { currentSelection = NodeUISelection.Sell; sellB.Select(); } else if (currentSelection == NodeUISelection.Sell) { currentSelection = NodeUISelection.Upgrade; upgradeB.Select(); } }
void Update() { if (contSupp.bControllerConnected && upgradeShell.activeSelf && !bIsNowNodeUIMode && !buildDescBarSel.bIsNowBuildDescMode) { upgradeB.Select(); bIsNowNodeUIMode = true; currentSelection = NodeUISelection.Upgrade; cMan.OnTUB(); cMan.RestoreTUBInteractability(); contSupp.bBelayAction = true; } if (contSupp.bControllerConnected && bIsNowNodeUIMode && upgradeShell.activeSelf) { // Controller Support if (contSupp.ControllerRightJoystickVertical() == 0) { bFreezeControllerInput = false; } else if (!bFreezeControllerInput && contSupp.ControllerRightJoystickVertical() > 0) { bControllerDown = true; bFreezeControllerInput = true; } else if (!bFreezeControllerInput && contSupp.ControllerRightJoystickVertical() < 0) { bControllerUp = true; bFreezeControllerInput = true; } if (bControllerDown) { bControllerDown = false; MoveDown(); } else if (bControllerUp) { bControllerUp = false; MoveUp(); } else if (contSupp.ControllerButtonPadBottom("down")) { SelectOption(); } else if (contSupp.ControllerButtonPadRight("down")) { StartCoroutine(contSupp.BelayAction()); ResetNodeUI(); shopSel.ResetTowerMode(); } else if (contSupp.ControllerBumperRight("down") || contSupp.ControllerBumperLeft("down")) { shopSel.ResetScroll(); } } }
public void ResetNodeUI() { bIsNowNodeUIMode = false; currentSelection = NodeUISelection.Upgrade; }