public void Initialize() { //LogoCtrl = new UILogoControl(); //UICallList.Add(UILogo.UIName, LogoCtrl.ShowUIForm); LoginCtrl = new UILoginControl(); UICallList.Add(UILogin.UIName, LoginCtrl.ShowUIForm); LoadingCtrl = new UILoadingControl(); UICallList.Add(UILoading.UIName, LoadingCtrl.ShowUIForm); }
protected new void Awake() { base.Awake(); mUIManager = SelfGameObject.AddComponent <UIManager>(); GameObject loginObject = mUIManager.LoadUI(UIManager.UIName.Login); if (loginObject != null) { mUILogin = loginObject.AddComponent <UILoginControl>(); } }