//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // HandleUnpause() //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- private void HandleUnpause() { if (unpauseIsPressed == true) { if (level1IsActive == true) { _level1.Unpause(); } if (level2IsActive == true) { _level2.Unpause(); } if (Globals.levelBossIsActive == true) { _levelBoss.Unpause(); } gameIsPaused = false; pause_menu.visible = false; unpause_button_normal.visible = false; unpause_button_hover.visible = false; back_main_button_normal.visible = false; back_main_button_hover.visible = false; unpauseIsPressed = false; } }