void Update() { if (characterChosen) { if (_player.GetButtonDown("Select") && weaponSelectActive && !weaponSelected) { God.PlayerReadyAdd(); setWeapon(); } if (_player.GetButtonDown("Cancel") && !weaponSelectActive && weaponSelected) { God.PlayerNotReady(); cancelWeaponSelection(); } if (_player.GetButtonDown("Cancel") && weaponSelectActive && !weaponSelected) { CancelSelection(); } if (weaponSelected) { if (_player.GetButtonDown("SubMenu") && !abilMenuOpen) { abilityMenu.SetActive(true); abilMenuOpen = true; } else if (_player.GetButtonDown("SubMenu") && abilMenuOpen) { abilityMenu.SetActive(false); abilMenuOpen = false; } } } }