simplified Update
function
This commit is contained in:
parent
4dc04d25da
commit
3fd5113d20
2 changed files with 19 additions and 15 deletions
|
@ -5,6 +5,24 @@ namespace WBM
|
|||
{
|
||||
public partial class WBM
|
||||
{
|
||||
private void handleKeyPresses()
|
||||
{
|
||||
this.moveUIOnKeyPress();
|
||||
this.resetUIOnKeyPress();
|
||||
this.toggleUIOnKeyPress();
|
||||
this.toggleShiftToCrouchOnKeyPress();
|
||||
this.toggleKillStreakSFXOnKeyPress();
|
||||
this.togglePlayerStatsOnKeyPress();
|
||||
this.toggleWeaponStatsOnKeyPress();
|
||||
this.toggleTeamStatsOnKeyPress();
|
||||
this.toggleLeaderboardEloOnKeyPress();
|
||||
this.toggleSquadServerOnKeyPress();
|
||||
this.toggleTestingServerOnKeyPress();
|
||||
this.clearChatOnKeyPress();
|
||||
this.clearDeathLogOnKeyPress();
|
||||
this.showConfigOnKeyPress();
|
||||
this.crouchOnKeyPress();
|
||||
}
|
||||
private void moveUIOnKeyPress()
|
||||
{
|
||||
if (Input.GetKey(KeyCode.LeftControl))
|
||||
|
|
16
WBM/WBM.cs
16
WBM/WBM.cs
|
@ -71,21 +71,7 @@ namespace WBM
|
|||
|
||||
private void Update()
|
||||
{
|
||||
this.moveUIOnKeyPress();
|
||||
this.resetUIOnKeyPress();
|
||||
this.toggleUIOnKeyPress();
|
||||
this.toggleShiftToCrouchOnKeyPress();
|
||||
this.toggleKillStreakSFXOnKeyPress();
|
||||
this.togglePlayerStatsOnKeyPress();
|
||||
this.toggleWeaponStatsOnKeyPress();
|
||||
this.toggleTeamStatsOnKeyPress();
|
||||
this.toggleLeaderboardEloOnKeyPress();
|
||||
this.toggleSquadServerOnKeyPress();
|
||||
this.toggleTestingServerOnKeyPress();
|
||||
this.clearChatOnKeyPress();
|
||||
this.clearDeathLogOnKeyPress();
|
||||
this.showConfigOnKeyPress();
|
||||
this.crouchOnKeyPress();
|
||||
this.handleKeyPresses();
|
||||
}
|
||||
|
||||
private void OnGUI()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue