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)); } }
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); //} }
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); } }
public UIRootManagerMediator(UIRootManager view) : base(SIGN, view) { Facade.RegisterCommand(CommandName.CHANGEPAGE, typeof(ChangeUIPage)); }
void Awake() { instance = this; canvas = this.GetComponentInChildren <Canvas> (); CreateChildDic(); }
public SelectAction(UIRootManager uiManager) { request = uiManager; }
public TalkAction(string value, UIRootManager uiManager) { Talk = value; request = uiManager; }