Пример #1
0
 public void GameEnd()
 {
     InGameButtons.SetActive(false);
     WaveNumber.gameObject.SetActive(true);
     ContinueButton.SetActive(false);
     PauseMenuShow();
 }
Пример #2
0
 void Start()
 {
     Choice1.SetActive(false);
     Choice2.SetActive(false);
     ContinueButton.SetActive(false);
     Button1.onClick.AddListener(ChooseOption1);
     Button2.onClick.AddListener(ChooseOption2);
     ContButton.onClick.AddListener(Continue);
 }
Пример #3
0
 void Start()
 {
     Globals.HadTomBreadConversation = true;
     Choice1.SetActive(false);
     Choice2.SetActive(false);
     ContinueButton.SetActive(false);
     Button1.onClick.AddListener(ChooseOption1);
     Button2.onClick.AddListener(ChooseOption2);
     ContButton.onClick.AddListener(Continue);
 }
Пример #4
0
 IEnumerator TypeSentence(string sentence)
 {
     dialogueText.text = "";
     foreach (char letter in sentence.ToCharArray())
     {
         dialogueText.text += letter;
         yield return(null);
     }
     ContinueButton.SetActive(true);
 }
Пример #5
0
    public void DisplayNextSentence()
    {
        if (_Dialogue.Count == 0)
        {
            EndDialogue();
            return;
        }

        else if (_Dialogue.Count == 1)
        {
            ContinueButton.GetComponentInChildren <Text>().text = "End>>";
        }
        Dialogue currentDialogue = _Dialogue.Dequeue();

        nameText.text = currentDialogue.name;
        string sentence = currentDialogue.sentence;

        SetImage(currentDialogue);
        StopAllCoroutines();
        ContinueButton.SetActive(false);
        StartCoroutine(TypeSentence(sentence));
    }