Exemple #1
0
    public AdvNode(string name, string[] texts, AdvChoices choice)
    {
        this.name = name;
        this.texts = texts;

        this.choices = new AdvChoices[1];
        this.choices[0] = choice;
    }
Exemple #2
0
    public void OnButton3Click()
    {
        Parameters param  = new Parameters();
        AdvChoices button = buttons[2] as AdvChoices;

        param.PutExtra(AdvNames.CHOICE_BTN_ID, button.name);
        EventBroadcaster.sharedInstance.NotifyObserver(AdvNames.ON_CHOICE_BTN_CLICKED, param);
        Utils.DisableAllChildren(transform);
    }
Exemple #3
0
    public void UpdateButtonNames()
    {
        if (buttons == null)
        {
            return;
        }

        for (int i = 0; i < buttons.Count; i++)
        {
            AdvChoices choice = buttons[i] as AdvChoices;
            buttonTexts[i].text = choice.text;
            buttonTexts[i].transform.parent.gameObject.SetActive(true);
        }
    }
Exemple #4
0
 public AdvNode(string name, string[] texts, AdvChoices[] choices)
 {
     this.name = name;
     this.texts = texts;
     this.choices = choices;
 }