Ver Fonte

添加海之市特效

leiyasi há 1 ano atrás
pai
commit
809ba697d3

+ 12 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/InstanceZones/UI_InstanceZonesUI.cs

@@ -8,6 +8,8 @@ namespace UI.InstanceZones
     {
         public GComponent target;
         public GLoader m_loaBg;
+        public GGraph m_bg_eff;
+        public GGraph m_fish_eff;
         public GComponent m_valueBar;
         public GButton m_btnBack;
         public UI_ButtonModle7 m_btn1;
@@ -16,6 +18,8 @@ namespace UI.InstanceZones
         public UI_ButtonModle9 m_btnPoem;
         public UI_ButtonModle9 m_btnField;
         public UI_ButtonModle9 m_btnArena;
+        public GGraph m_eff;
+        public Transition m_t0;
         public const string URL = "ui://ez8qotvcyeocfv0";
         public const string PACKAGE_NAME = "InstanceZones";
         public const string RES_NAME = "InstanceZonesUI";
@@ -64,6 +68,8 @@ namespace UI.InstanceZones
         private void Init(GComponent comp)
         {
             m_loaBg = (GLoader)comp.GetChild("loaBg");
+            m_bg_eff = (GGraph)comp.GetChild("bg_eff");
+            m_fish_eff = (GGraph)comp.GetChild("fish_eff");
             m_valueBar = (GComponent)comp.GetChild("valueBar");
             m_btnBack = (GButton)comp.GetChild("btnBack");
             m_btn1 = (UI_ButtonModle7)UI_ButtonModle7.Create(comp.GetChild("btn1"));
@@ -72,10 +78,14 @@ namespace UI.InstanceZones
             m_btnPoem = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnPoem"));
             m_btnField = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnField"));
             m_btnArena = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnArena"));
+            m_eff = (GGraph)comp.GetChild("eff");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaBg = null;
+            m_bg_eff = null;
+            m_fish_eff = null;
             m_valueBar = null;
             m_btnBack = null;
             m_btn1.Dispose();
@@ -90,6 +100,8 @@ namespace UI.InstanceZones
             m_btnField = null;
             m_btnArena.Dispose();
             m_btnArena = null;
+            m_eff = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 15 - 0
GameClient/Assets/Game/HotUpdate/Views/InstanceZones/InstanceZonesView.cs

@@ -11,9 +11,19 @@ namespace GFGGame
     {
         private UI_InstanceZonesUI _ui;
         private ValueBarController _valueBarController;
+        private EffectUI _effectUI1;
+        private EffectUI _effectUI2;
+        private EffectUI _effectUI3;
+
 
         public override void Dispose()
         {
+            EffectUIPool.Recycle(_effectUI2);
+            _effectUI2 = null;
+
+            EffectUIPool.Recycle(_effectUI3);
+            _effectUI3 = null;
+
             if (_valueBarController != null)
             {
                 _valueBarController.Dispose();
@@ -46,6 +56,8 @@ namespace GFGGame
             _ui.m_btnArena.target.onClick.Add(OnClickBtnArena);
             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hzs_bg");
+            _effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_bg_eff, "ui_HaiZhiShi", "Bg_All_Tx");
+            _effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_fish_eff, "ui_HaiZhiShi", "Bg_Yu");
         }
 
         protected override void OnShown()
@@ -56,11 +68,14 @@ namespace GFGGame
             CheckFunOpen();
             UpdateRedDot();
             Timers.inst.AddUpdate(CheckGuide);
+            _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_eff, "ui_HaiZhiShi", "Bg_ZhuanChang_NiuQu");
         }
 
         protected override void OnHide()
         {
             base.OnHide();
+            EffectUIPool.Recycle(_effectUI1);
+            _effectUI1 = null;
             _valueBarController.OnHide();
             Timers.inst.Remove(CheckGuide);
         }

BIN
GameClient/Assets/ResIn/UI/InstanceZones/InstanceZones_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/InstanceZones/InstanceZones_atlas0.png


BIN
GameClient/Assets/ResIn/UI/InstanceZones/InstanceZones_fui.bytes


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_fui.bytes