public void GlobalButtonClick(int buttonID) { if (needsElectricCharge && electricChargeReserve < 0.01d) { return; } if (activePage.GlobalButtonClick(buttonID)) { PlayClickSound(audioOutput); } }
public void GlobalButtonClick(int buttonID) { if (resourceDepleted || noCommConnection) { return; } if (activePage.GlobalButtonClick(buttonID)) { PlayClickSound(audioOutput); } }