Example #1
0
        protected void AddBaseUI(BaseUI uiObject, string name = "")
        {
            if (uiObject == null)
            {
                Debug.LogError("AddBaseUI: uiObject is null. name=" + name);
            }

            if (name == "")
            {
                name = uiObject.name;
            }
            // Debug.Log("AddUI: name=" + uiObject.name);
            uiObject.viewController = this;
            //	mBaseUIList.Add(uiObject);

            mBaseUIDict.Add(name, uiObject);
        }
Example #2
0
 public virtual void OnViewShown(BaseUI closedView)
 {
 }
Example #3
0
        // Sample Code for the sub class
        //
        //		#region Normal Mode Game UI
        //		private NormalModeGUI mNormalModeGameGUI;
        //
        //		void SetupNormalGameUI() {
        //			GameObject obj = GameObjectHelper.GetChildObject(gameObject, "InGamePanel");
        //			mNormalModeGameGUI= obj.GetComponent<NormalModeGUI>();
        //			AddBaseUI(mNormalModeGameGUI);		// effect: VC help control view
        //			// e.g MainUI.Show -> vc help close other views
        //		}
        //
        //		public NormalModeGUI NormalModeUI {
        //			get {
        //				return mNormalModeGameGUI;
        //			}
        //		}
        //
        //		#endregion

        public virtual void OnViewClosed(BaseUI closedView)
        {
        }