Ejemplo n.º 1
0
    public void LoadMediator(GameObject goRoot)
    {
        if (null == goRoot)
        {
            return;
        }

        UIRootManager root = goRoot.GetComponent <UIRootManager>();

        if (null != root)
        {
            Facade.RegisterMediator(new UIRootManagerMediator(root));
        }

        Transform tfLogin = goRoot.transform.FindChild("LoginRegister");

        if (null != tfLogin)
        {
            LoginRegister login = tfLogin.gameObject.GetComponent <LoginRegister>();
            Facade.RegisterMediator(new LoginRegisterMediator(login));
        }

        Transform tfRegister = goRoot.transform.FindChild("Register");

        if (null != tfRegister)
        {
            Register register = tfRegister.gameObject.GetComponent <Register>();
            Facade.RegisterMediator(new RegisterMediator(register));
        }
    }
Ejemplo n.º 2
0
    IEnumerator Start()
    {
        yield return(StartCoroutine(LinkData(defultgid)));

        foreach (string gid in Allgid)
        {
            yield return(StartCoroutine(LinkData(gid)));
        }

        UIRootManager sample = FindObjectOfType <UIRootManager>();

        sample.DataSet(CheckingCommand);

        //Dictionary<string, string> order = new Dictionary<string, string>();
        //order.Add("aaa", "bbb");
        //order.Add("bbb", "bbb");
        //order.Add("ccc", "bbb");
        //order.Add("ddd", "bbb");
        //order.Add("eee", "bbb");
        //Dictionary<string, string>.KeyCollection keys = order.Keys;

        //foreach ( string key in keys)
        //{
        //    Debug.Log(key);
        //}
    }
Ejemplo n.º 3
0
    public override void Execute(INotification notification)
    {
        GameObject go = notification.Body as GameObject;

        if (null == go)
        {
            return;
        }

        UIRootManager root = go.GetComponent <UIRootManager>();

        if (null != root)
        {
            root.ShowPage(notification.Type);
        }
    }
Ejemplo n.º 4
0
 public UIRootManagerMediator(UIRootManager view) : base(SIGN, view)
 {
     Facade.RegisterCommand(CommandName.CHANGEPAGE, typeof(ChangeUIPage));
 }
Ejemplo n.º 5
0
 void Awake()
 {
     instance = this;
     canvas   = this.GetComponentInChildren <Canvas> ();
     CreateChildDic();
 }
Ejemplo n.º 6
0
 public SelectAction(UIRootManager uiManager)
 {
     request = uiManager;
 }
Ejemplo n.º 7
0
 public TalkAction(string value, UIRootManager uiManager)
 {
     Talk    = value;
     request = uiManager;
 }