public AdvNode(string name, string[] texts, AdvChoices choice) { this.name = name; this.texts = texts; this.choices = new AdvChoices[1]; this.choices[0] = choice; }
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); }
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); } }
public AdvNode(string name, string[] texts, AdvChoices[] choices) { this.name = name; this.texts = texts; this.choices = choices; }