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(); }
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(); }
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)); }
void Start() { YesButton.SetActive(false); NoButton.SetActive(false); }
public void NoButtonClickUI() //Client { RPC("AnswerChoiceRPC", NetworkReceivers.Server, false); YesButton.SetActive(false); NoButton.SetActive(false); }
public void AskForChoiceRPC() //Called by Server on Client { YesButton.SetActive(true); NoButton.SetActive(true); }