// Button to resume game public void resumeGame() { pause_panel.SetActive(false); // Hide the pause panel on the scene PlayerMovement.pausePlayer(false); // Set player movement to false OpponentRings.pauseOpponent(false); // Set opponent movement to false }
// Button to pause Game public void pauseGame() { pause_panel.SetActive(true); // Display the pause panel on the scene PlayerMovement.pausePlayer(true); // Set player movement to true OpponentRings.pauseOpponent(true); // Set opponent movement to true }