Beispiel #1
0
    public void ShowPopupForLevelFailed()
    {
        YesButton.SetActive(true);
        NoButton.SetActive(true);
        ContinueButton.SetActive(false);
        Description.gameObject.SetActive(true);
        StarsPanel.SetActive(false);

        Heading.text     = "LEVEL FAILED";
        Description.text = "\"Practice makes a man perfect\". Do you want to retry?";
        ShowPopup();
    }
Beispiel #2
0
    public void ShowPopupForLevelStart(string description)
    {
        ContinueButton.SetActive(true);
        YesButton.SetActive(false);
        NoButton.SetActive(false);
        Description.gameObject.SetActive(true);
        StarsPanel.SetActive(false);

        Heading.text     = "OBJECTIVE";
        Description.text = description;
        ShowPopup();
    }
Beispiel #3
0
    public void ShowPopupForLevelComplete(int numberOfStars)
    {
        YesButton.SetActive(false);
        NoButton.SetActive(false);
        ContinueButton.SetActive(true);
        QuitButton.SetActive(true);
        Description.gameObject.SetActive(false);
        StarsPanel.SetActive(true);

        Heading.text = "LEVEL COMPLETE";
        ShowPopup();
        StartCoroutine(ShowStars(numberOfStars));
    }
Beispiel #4
0
 void Start()
 {
     YesButton.SetActive(false);
     NoButton.SetActive(false);
 }
Beispiel #5
0
 public void NoButtonClickUI()     //Client
 {
     RPC("AnswerChoiceRPC", NetworkReceivers.Server, false);
     YesButton.SetActive(false);
     NoButton.SetActive(false);
 }
Beispiel #6
0
 public void AskForChoiceRPC()     //Called by Server on Client
 {
     YesButton.SetActive(true);
     NoButton.SetActive(true);
 }