void Update() { if (IsPointingAtCharacters()) { if (Input.GetKeyDown(KeyCode.LeftArrow)) { characterPointer.AdvancePointerBackward(); } else if (Input.GetKeyDown(KeyCode.RightArrow)) { characterPointer.AdvancePointerForward(); } else if (Input.GetKeyDown(KeyCode.Return)) { // Select target activeMenu.RunMenuOption(cursor.GetCursorIndex(), characterPointer.GetTarget()); characterPointer.DisablePointer(); characterPointer.ResetCameraTransform(); } else if (Input.GetKeyDown(KeyCode.Escape)) { // Return to normal UI characterPointer.DisablePointer(); characterPointer.ResetCameraTransform(); ActionDetails.ResetDetails(); } } else if (activeMenu != null) { if (Input.GetKeyDown(KeyCode.DownArrow)) { IncrementCursor(); } else if (Input.GetKeyDown(KeyCode.UpArrow)) { DecrementCursor(); } else if (Input.GetKeyDown(KeyCode.Return)) { SelectMenuItem(); } else if (Input.GetKeyDown(KeyCode.LeftArrow)) { ReturnToBaseMenu(); } } }