Beispiel #1
0
        public void UpdateMenu() //更新预设体实例
        {
            if (obj == null)
            {
                return;
            }
            MenuBase iMenu = obj.GetComponent <MenuBase>();

            if (iMenu != null)
            {
                iMenu.UpdateMenu();
            }
            else
            {
                Debug.LogWarningFormat("not found IMenu componet.({0})", obj);
            }
        }