Browse Source

工作室添加特效

zhangyuqian 1 year ago
parent
commit
522dcdbc03

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Studio/UI_StudioUI.cs

@@ -15,6 +15,7 @@ namespace UI.Studio
         public UI_ComEctype m_comProperty;
         public UI_ComEctype m_comFiling;
         public UI_ComEctype m_comPorcelain;
+        public GGraph m_bgEffect;
         public const string URL = "ui://xz8kxrecrbxq0";
         public const string PACKAGE_NAME = "Studio";
         public const string RES_NAME = "StudioUI";
@@ -70,6 +71,7 @@ namespace UI.Studio
             m_comProperty = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comProperty"));
             m_comFiling = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comFiling"));
             m_comPorcelain = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comPorcelain"));
+            m_bgEffect = (GGraph)comp.GetChild("bgEffect");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -86,6 +88,7 @@ namespace UI.Studio
             m_comFiling = null;
             m_comPorcelain.Dispose();
             m_comPorcelain = null;
+            m_bgEffect = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs

@@ -15,6 +15,7 @@ namespace GFGGame
         private EffectUI _effectUI3;
         private EffectUI _effectUI4;
         private EffectUI _effectUI5;
+        private EffectUI _effectUI6;
         private Dictionary<string, UI_ComEctype> comEctypeDic = new Dictionary<string, UI_ComEctype>();
         public override void Dispose()
         {
@@ -28,6 +29,8 @@ namespace GFGGame
             _effectUI4 = null;
             EffectUIPool.Recycle(_effectUI5);
             _effectUI5 = null;
+            EffectUIPool.Recycle(_effectUI6);
+            _effectUI6 = null;
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -65,6 +68,7 @@ namespace GFGGame
             _effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_comFabric.m_effect, "ui_Small_parts", "YaJi_TuBiao");
             _effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_comProperty.m_effect, "ui_Small_parts", "YaJi_TuBiao");
             _effectUI5 = EffectUIPool.CreateEffectUI(_ui.m_comPorcelain.m_effect, "ui_Small_parts", "YaJi_TuBiao");
+            _effectUI6 = EffectUIPool.CreateEffectUI(_ui.m_bgEffect, "ui_Small_parts", "WorkRoom_bg");
         }
         protected override void AddEventListener()
         {

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Studio/Studio_fui.bytes