private IEnumerator SwitchWeapon(HackerHand hand) { selectedWeaponIndex = (selectedWeaponIndex + 1) % selectionPositions.Length; var touchPos = selectionPositions[selectedWeaponIndex]; var touchPosVec = new Vector2(touchPos[0], touchPos[1]) * 0.8f; player.OpenAbilitySelectionWheel(hand); yield return(new WaitForFixedUpdate()); player.SetAbilitySelectionPosition(hand, touchPosVec); yield return(new WaitForSeconds(0.2f)); player.ConfirmAbilitySelection(hand, touchPosVec); yield return(new WaitForSeconds(0.1f)); player.CloseAbilitySelectionWheel(hand); }
private void Controller_PadUntouched(object sender, ClickedEventArgs e) { player.CloseAbilitySelectionWheel(GetCurrentHand()); }