Exemplo n.º 1
0
 public void FinishChoose(ActBranchChoiceView vv)
 {
     if (ActBranchEvent != null)
     {
         ActBranchEvent(view.choices.IndexOf(vv));
         ActBranchEvent = null;
     }
     mUIMgr.CloseCertainPanel(this);
 }
Exemplo n.º 2
0
    public override void BindView()
    {
        view.ChoiceContrainer = root.Find("Branches");
        view.NameText         = root.Find("Name").GetComponent <Text>();
        view.DespText         = root.Find("Desp").GetComponent <Text>();

        view.TimeLeft = root.Find("Timer").Find("TimeLeft").GetComponent <Image>();

        foreach (Transform child in view.ChoiceContrainer)
        {
            ActBranchChoiceView vv = new ActBranchChoiceView();
            vv.BindEvent(child);
            view.choices.Add(vv);
        }
    }