Ejemplo n.º 1
0
    void OnEnable()
    {
        Dictionary <string, GComponent> dic = new Dictionary <string, GComponent>();

        UIPackage.AddPackage("DialogPanel");
        //DialogPanel.DialogPanelBinder.BindAll();
        //DialogPanel.UI_Main uimain = DialogPanel.UI_Main.CreateInstance();
        view = UIPackage.CreateObject("DialogPanel", "Main") as GComponent;

        GRoot.inst.AddChild(view);
        if (!dic.ContainsKey(string.Format("{0}", view.GetType().FullName)))
        {
            dic.Add(string.Format("{0}", view.GetType().FullName), view);
        }
        GTextField T = ((GComponent)view).GetChild("Text") as GTextField;

        T.text       = "213421351354243324421343241243214";
        targetUIText = T;
        textCache    = targetUIText.text;
        T.text       = "";
        Speed        = 0.05f;
        StartCoroutine(ProcessType());
        //view.Dispose();
    }