I have a problem with the pop-up lose menu and win menu Please help!!
I have a problem, the lose and win menus are always shown and i want them to pop up after the player wins or loses
using UnityEngine; using System.Collections;
public class GameManager : MonoBehaviour {
 public GameObject loseMenu;
 public GameObject winMenu;
 Ball ball;
 void Awake ()
 {
     ball = GameObject.FindObjectOfType<Ball> ();
 }
 public void ShowLoseMenu ()
 {
     loseMenu.SetActive (true);
 }
 public void ShowWinMenu ()
 {
     StartCoroutine (showWinMenu());
 }
 IEnumerator showWinMenu ()
 {
     yield return new WaitForSeconds (1);
     winMenu.SetActive (true);
 }
 public void NextLevel ()
 {
     ball.gameObject.SetActive (true);
     ball.scale = 1;
     ball.fade = 1;
     ball.incresePrecent -= 0.07f;
     loseMenu.SetActive (false);
     winMenu.SetActive (false);
 }
 
               }
these are my codes, everything is working fine but the lose and win menu
               Comment
              
 
               
              Your answer