zhaoyang 3 éve
szülő
commit
0adc664471
39 módosított fájl, 368 hozzáadás és 113 törlés
  1. 1 1
      FGUIProject/assets/LuckyBox/LuckyBoxUI.xml
  2. 1 0
      FGUIProject/assets/LuckyBox/components/Button1.xml
  3. 1 0
      FGUIProject/assets/LuckyBox/components/Button2.xml
  4. 11 5
      FGUIProject/assets/LuckyBox/components/ComListBgItem.xml
  5. BIN
      FGUIProject/assets/LuckyBox/images/cj_bj_4.jpg
  6. BIN
      FGUIProject/assets/LuckyBox/images/cj_xk_xian.png
  7. BIN
      FGUIProject/assets/LuckyBox/images/cj_zizi_2.png
  8. 0 0
      FGUIProject/assets/LuckyBox/imagesExport/cj_bj_1.jpg
  9. 0 0
      FGUIProject/assets/LuckyBox/imagesExport/cj_bj_2.jpg
  10. 0 0
      FGUIProject/assets/LuckyBox/imagesExport/cj_bj_3.jpg
  11. BIN
      FGUIProject/assets/LuckyBox/imagesExport/cj_bj_4.jpg
  12. BIN
      FGUIProject/assets/LuckyBox/imagesExport/cj_tp_1.jpg
  13. BIN
      FGUIProject/assets/LuckyBox/imagesExport/cj_tp_2.jpg
  14. BIN
      FGUIProject/assets/LuckyBox/imagesExport/cj_tp_3.jpg
  15. 5 4
      FGUIProject/assets/LuckyBox/package.xml
  16. 6 0
      GameClient/Assets/Game/HotUpdate/Data/LuckyBoxDataManager.cs
  17. 8 0
      GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs
  18. 71 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button1.cs
  19. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button1.cs.meta
  20. 71 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button2.cs
  21. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button2.cs.meta
  22. 12 3
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_ComListBgItem.cs
  23. 9 7
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_LuckyBoxUI.cs
  24. 2 2
      GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs
  25. 2 2
      GameClient/Assets/Game/HotUpdate/Views/Common/Controller/ValueBarController.cs
  26. 3 2
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/FunctionOpenView.cs
  27. 3 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs
  28. 26 3
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs
  29. 83 70
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs
  30. 5 3
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs
  31. 15 10
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs
  32. 11 0
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs
  33. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0!a.png
  34. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0.png
  35. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_eshh1f.png
  36. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_o1391g.png
  37. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_o1391h.png
  38. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_o1391i.png
  39. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes

+ 1 - 1
FGUIProject/assets/LuckyBox/LuckyBoxUI.xml

@@ -29,7 +29,7 @@
     </component>
     <component id="n10_ga16" name="btnBuyOne" src="ga16b" fileName="components/Button1.xml" xy="91,1748" group="n31_vek8"/>
     <component id="n11_ga16" name="btnBuyTen" src="ga16c" fileName="components/Button2.xml" xy="577,1748" group="n31_vek8"/>
-    <image id="n21_ga16" name="iconSpecial" src="ga16i" fileName="images/cj_anniu_ts.png" xy="919,1663" group="n31_vek8">
+    <image id="n21_ga16" name="imgSpecial" src="ga16i" fileName="images/cj_anniu_ts.png" xy="919,1663" group="n31_vek8">
       <gearDisplay controller="c1" pages="0"/>
       <relation target="n11_ga16" sidePair="left-left,top-top"/>
     </image>

+ 1 - 0
FGUIProject/assets/LuckyBox/components/Button1.xml

@@ -5,6 +5,7 @@
     <image id="n0_ga16" name="n0" src="fka70" fileName="images/cj_anniu_1.png" xy="0,0">
       <relation target="" sidePair="width-width,height-height"/>
     </image>
+    <graph id="n1_qi04" name="holder" xy="110,47" size="10,10"/>
   </displayList>
   <Button/>
 </component>

+ 1 - 0
FGUIProject/assets/LuckyBox/components/Button2.xml

@@ -5,6 +5,7 @@
     <image id="n0_ga16" name="n0" src="fka71" fileName="images/cj_anniu_2.png" xy="0,0">
       <relation target="" sidePair="width-width,height-height"/>
     </image>
+    <graph id="n1_qi04" name="holder" xy="110,47" size="10,10"/>
   </displayList>
   <Button/>
 </component>

+ 11 - 5
FGUIProject/assets/LuckyBox/components/ComListBgItem.xml

@@ -1,18 +1,24 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,1920">
-  <controller name="c1" pages="0,,1,,2," selected="0"/>
   <displayList>
     <loader id="n25_vek8" name="loaBg" xy="0,-240" size="1080,2400" url="ui://drx9d1useshh1f" autoSize="true">
       <relation target="" sidePair="center-center,middle-middle"/>
     </loader>
-    <loader id="n26_vek8" name="n26" xy="0,1378" size="1080,542" url="ui://drx9d1usvek8s" autoSize="true">
-      <gearDisplay controller="c1" pages="2"/>
+    <loader id="n26_vek8" name="loaImg" xy="0,1378" size="1080,542" url="ui://drx9d1usvek8s" autoSize="true">
       <relation target="" sidePair="bottom-bottom"/>
     </loader>
-    <text id="n28_vek8" name="txtTime" xy="324,409" size="55,902" fontSize="40" color="#fffbdd" align="center" vAlign="middle" autoSize="none" text="剩余81天">
-      <gearDisplay controller="c1" pages="0"/>
+    <graph id="n31_qi04" name="holder1" xy="697,779" size="100,100">
+      <relation target="" sidePair="top-middle"/>
+    </graph>
+    <text id="n28_vek8" name="txtTime" xy="324,409" size="80,902" fontSize="40" color="#fffbdd" align="center" vAlign="middle" autoSize="none" text="剩余81天">
       <relation target="" sidePair="height-height,top-top"/>
     </text>
+    <graph id="n30_qi04" name="holder" xy="312,700" size="100,100">
+      <relation target="" sidePair="top-middle"/>
+    </graph>
+    <image id="n29_qi04" name="imgTitle" src="qi041j" fileName="images/cj_zizi_2.png" xy="92,337">
+      <relation target="" sidePair="top-middle"/>
+    </image>
   </displayList>
   <customProperty target="loaBg" propertyId="1"/>
 </component>

BIN
FGUIProject/assets/LuckyBox/images/cj_bj_4.jpg


BIN
FGUIProject/assets/LuckyBox/images/cj_xk_xian.png


BIN
FGUIProject/assets/LuckyBox/images/cj_zizi_2.png


+ 0 - 0
FGUIProject/assets/LuckyBox/images/cj_bj_1.jpg → FGUIProject/assets/LuckyBox/imagesExport/cj_bj_1.jpg


+ 0 - 0
FGUIProject/assets/LuckyBox/images/cj_bj_2.jpg → FGUIProject/assets/LuckyBox/imagesExport/cj_bj_2.jpg


+ 0 - 0
FGUIProject/assets/LuckyBox/images/cj_bj_3.jpg → FGUIProject/assets/LuckyBox/imagesExport/cj_bj_3.jpg


BIN
FGUIProject/assets/LuckyBox/imagesExport/cj_bj_4.jpg


BIN
FGUIProject/assets/LuckyBox/imagesExport/cj_tp_1.jpg


BIN
FGUIProject/assets/LuckyBox/imagesExport/cj_tp_2.jpg


BIN
FGUIProject/assets/LuckyBox/imagesExport/cj_tp_3.jpg


+ 5 - 4
FGUIProject/assets/LuckyBox/package.xml

@@ -24,12 +24,12 @@
     <image id="l5nzo" name="cj_xk_yd.png" path="/images/"/>
     <image id="l5nzp" name="cj_xk_xian.png" path="/images/" scale="9grid" scale9grid="8,0,9,12"/>
     <component id="l5nzq" name="ComStar.xml" path="/components/"/>
-    <image id="vek8r" name="cj_bj_1.jpg" path="/images/" exported="true" atlas="alone_npot"/>
+    <image id="vek8r" name="cj_bj_1.jpg" path="/imagesExport/" exported="true" atlas="alone_npot"/>
     <image id="vek8s" name="cj_ditua.png" path="/images/"/>
     <image id="vek8t" name="cj_duihuan.png" path="/images/"/>
     <image id="vek8v" name="cj_yulan.png" path="/images/"/>
-    <image id="vek8x" name="cj_bj_2.jpg" path="/images/" exported="true" atlas="alone_npot"/>
-    <image id="vek8y" name="cj_bj_3.jpg" path="/images/" exported="true" atlas="alone_npot"/>
+    <image id="vek8x" name="cj_bj_2.jpg" path="/imagesExport/" exported="true" atlas="alone_npot"/>
+    <image id="vek8y" name="cj_bj_3.jpg" path="/imagesExport/" exported="true" atlas="alone_npot"/>
     <component id="vek811" name="ComListBgItem.xml" path="/components/"/>
     <component id="vek812" name="ComCost.xml" path="/components/"/>
     <image id="qdrt14" name="hd_dkdk_1.png" path="/images/"/>
@@ -43,10 +43,11 @@
     <component id="qdrt1c" name="Button4.xml" path="/components/"/>
     <image id="ly9g1d" name="cj_xhua.png" path="/images/"/>
     <component id="ly9g1e" name="Button5.xml" path="/components/"/>
-    <image id="eshh1f" name="cj_bj_4.jpg" path="/images/" exported="true" atlas="alone_npot"/>
+    <image id="eshh1f" name="cj_bj_4.jpg" path="/imagesExport/" exported="true" atlas="alone_npot"/>
     <image id="o1391g" name="cj_tp_3.jpg" path="/imagesExport/" exported="true" atlas="alone_npot"/>
     <image id="o1391h" name="cj_tp_1.jpg" path="/imagesExport/" exported="true" atlas="alone_npot"/>
     <image id="o1391i" name="cj_tp_2.jpg" path="/imagesExport/" exported="true" atlas="alone_npot"/>
+    <image id="qi041j" name="cj_zizi_2.png" path="/images/"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\LuckyBox" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Data/LuckyBoxDataManager.cs

@@ -6,6 +6,12 @@ namespace GFGGame
 {
     public class LuckyBoxDataManager : SingletonBase<LuckyBoxDataManager>
     {
+
+        public const int BOX_ID_1 = 1;
+        public const int BOX_ID_2 = 2;
+        public const int BOX_ID_3 = 3;
+
+
         private List<ItemData> _rewardsList;//当前奖励,每次抽奖后刷新
         private Dictionary<int, ItemData> _firstRewardsList = new Dictionary<int, ItemData>();//首次获得的奖励
         public int[] luckyBoxIds = new int[] { 1, 2, 3 };//奖池列表

+ 8 - 0
GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs

@@ -319,5 +319,13 @@ namespace GFGGame
             wrapper = _wrapper;
             gameObject = _gameObject;
         }
+        public static void DestroyObjectFromView(GameObject _gameObject)
+        {
+            if (_gameObject != null)
+            {
+                GameObject.Destroy(_gameObject);
+                _gameObject = null;
+            }
+        }
     }
 }

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button1.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.LuckyBox
+{
+    public partial class UI_Button1
+    {
+        public GButton target;
+        public GGraph m_holder;
+        public const string URL = "ui://drx9d1usga16b";
+        public const string PACKAGE_NAME = "LuckyBox";
+        public const string RES_NAME = "Button1";
+        private static UI_Button1 _proxy;
+
+        public static UI_Button1 Create(GObject gObject = null)
+        {
+            var ui = new UI_Button1();
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_Button1 Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_Button1();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_holder = (GGraph)comp.GetChild("holder");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_holder = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button1.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: a29a45fd300152146943435d34f567ef
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button2.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.LuckyBox
+{
+    public partial class UI_Button2
+    {
+        public GButton target;
+        public GGraph m_holder;
+        public const string URL = "ui://drx9d1usga16c";
+        public const string PACKAGE_NAME = "LuckyBox";
+        public const string RES_NAME = "Button2";
+        private static UI_Button2 _proxy;
+
+        public static UI_Button2 Create(GObject gObject = null)
+        {
+            var ui = new UI_Button2();
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_Button2 Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_Button2();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_holder = (GGraph)comp.GetChild("holder");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_holder = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_Button2.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: d114a234d66d2b940ba6c423a61552da
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 12 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_ComListBgItem.cs

@@ -7,9 +7,12 @@ namespace UI.LuckyBox
     public partial class UI_ComListBgItem
     {
         public GComponent target;
-        public Controller m_c1;
         public GLoader m_loaBg;
+        public GLoader m_loaImg;
+        public GGraph m_holder1;
         public GTextField m_txtTime;
+        public GGraph m_holder;
+        public GImage m_imgTitle;
         public const string URL = "ui://drx9d1usvek811";
         public const string PACKAGE_NAME = "LuckyBox";
         public const string RES_NAME = "ComListBgItem";
@@ -57,15 +60,21 @@ namespace UI.LuckyBox
 
         private void Init(GComponent comp)
         {
-            m_c1 = comp.GetController("c1");
             m_loaBg = (GLoader)comp.GetChild("loaBg");
+            m_loaImg = (GLoader)comp.GetChild("loaImg");
+            m_holder1 = (GGraph)comp.GetChild("holder1");
             m_txtTime = (GTextField)comp.GetChild("txtTime");
+            m_holder = (GGraph)comp.GetChild("holder");
+            m_imgTitle = (GImage)comp.GetChild("imgTitle");
         }
         public void Dispose(bool disposeTarget = false)
         {
-            m_c1 = null;
             m_loaBg = null;
+            m_loaImg = null;
+            m_holder1 = null;
             m_txtTime = null;
+            m_holder = null;
+            m_imgTitle = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 9 - 7
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_LuckyBoxUI.cs

@@ -18,9 +18,9 @@ namespace UI.LuckyBox
         public GGroup m_grpTop;
         public UI_ComCost m_comCostOne;
         public UI_ComCost m_comCostTen;
-        public GButton m_btnBuyOne;
-        public GButton m_btnBuyTen;
-        public GImage m_iconSpecial;
+        public UI_Button1 m_btnBuyOne;
+        public UI_Button2 m_btnBuyTen;
+        public GImage m_imgSpecial;
         public GTextField m_txtRemainTimes;
         public GGroup m_grpBottom;
         public GButton m_btnLeft;
@@ -83,9 +83,9 @@ namespace UI.LuckyBox
             m_grpTop = (GGroup)comp.GetChild("grpTop");
             m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne"));
             m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen"));
-            m_btnBuyOne = (GButton)comp.GetChild("btnBuyOne");
-            m_btnBuyTen = (GButton)comp.GetChild("btnBuyTen");
-            m_iconSpecial = (GImage)comp.GetChild("iconSpecial");
+            m_btnBuyOne = (UI_Button1)UI_Button1.Create(comp.GetChild("btnBuyOne"));
+            m_btnBuyTen = (UI_Button2)UI_Button2.Create(comp.GetChild("btnBuyTen"));
+            m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
             m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes");
             m_grpBottom = (GGroup)comp.GetChild("grpBottom");
             m_btnLeft = (GButton)comp.GetChild("btnLeft");
@@ -106,9 +106,11 @@ namespace UI.LuckyBox
             m_comCostOne = null;
             m_comCostTen.Dispose();
             m_comCostTen = null;
+            m_btnBuyOne.Dispose();
             m_btnBuyOne = null;
+            m_btnBuyTen.Dispose();
             m_btnBuyTen = null;
-            m_iconSpecial = null;
+            m_imgSpecial = null;
             m_txtRemainTimes = null;
             m_grpBottom = null;
             m_btnLeft = null;

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -197,12 +197,12 @@ namespace GFGGame
         }
         private void UpdateCJGoodsCount()
         {
-            int luckyBoxId1 = LuckyBoxDataManager.Instance.luckyBoxIds[0];
+            int luckyBoxId1 = LuckyBoxDataManager.BOX_ID_3;
             LuckyBoxCfg luckyBoxCfg1 = LuckyBoxCfgArray.Instance.GetCfg(luckyBoxId1);
             _ui.m_txtCount0.text = "" + ItemDataManager.GetItemNum(luckyBoxCfg1.drop);
             _ui.m_loaIcon0.icon = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg1.drop).res);
 
-            int luckyBoxId2 = LuckyBoxDataManager.Instance.luckyBoxIds[1];
+            int luckyBoxId2 = LuckyBoxDataManager.BOX_ID_2;
             LuckyBoxCfg luckyBoxCfg2 = LuckyBoxCfgArray.Instance.GetCfg(luckyBoxId2);
             _ui.m_txtCount1.text = "" + ItemDataManager.GetItemNum(luckyBoxCfg2.drop);
             _ui.m_loaIcon1.icon = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg2.drop).res);

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Common/Controller/ValueBarController.cs

@@ -131,12 +131,12 @@ namespace GFGGame
         //ÕªÐÇ£¨³é½±£©¶Ò»»
         private void UpdateCJExchange()
         {
-            int luckyBoxId1 = LuckyBoxDataManager.Instance.luckyBoxIds[1];
+            int luckyBoxId1 = LuckyBoxDataManager.BOX_ID_2;
             LuckyBoxCfg luckyBoxCfg1 = LuckyBoxCfgArray.Instance.GetCfg(luckyBoxId1);
             _valueBar.m_btnCJLuoXing.text = "" + ItemDataManager.GetItemNum(luckyBoxCfg1.drop);
             _valueBar.m_btnCJLuoXing.icon = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg1.drop).res);
 
-            int luckyBoxId2 = LuckyBoxDataManager.Instance.luckyBoxIds[2];
+            int luckyBoxId2 = LuckyBoxDataManager.BOX_ID_1;
             LuckyBoxCfg luckyBoxCfg2 = LuckyBoxCfgArray.Instance.GetCfg(luckyBoxId2);
             _valueBar.m_btnCJHuoDong.text = "" + ItemDataManager.GetItemNum(luckyBoxCfg2.drop);
             _valueBar.m_btnCJHuoDong.icon = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg2.drop).res);

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Views/CommonGame/FunctionOpenView.cs

@@ -9,10 +9,11 @@ namespace GFGGame
     {
         private UI_FunctionOpenUI _ui;
         List<string> _funList = new List<string>();
-        private GameObject _effectObj;
+        private GameObject _gameObject;
         private GoWrapper _wrapper;
         public override void Dispose()
         {
+            SceneController.DestroyObjectFromView(_gameObject);
             base.Dispose();
         }
 
@@ -55,7 +56,7 @@ namespace GFGGame
                 return;
             }
             string resPath = ResPathUtil.GetViewEffectPath("ui_xjs", "ui_xjs");
-            SceneController.AddObjectToView(_effectObj, _wrapper, _ui.m_holder, resPath, out _effectObj, out _wrapper);
+            SceneController.AddObjectToView(_gameObject, _wrapper, _ui.m_holder, resPath, out _gameObject, out _wrapper);
             FunctionOpenCfg cfg = FunctionOpenCfgArray.Instance.GetCfg(_funList[0]);
             _ui.m_ComFunctionOpen.m_txtName.text = cfg.name;
             _ui.m_ComFunctionOpen.m_logIcon.url = ResPathUtil.GetCommonGameResPath(cfg.res);

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs

@@ -64,7 +64,9 @@ namespace GFGGame
         private void OnClickBg()
         {
             this.Hide();
-            ViewManager.Show(ViewName.LUCKY_BOX_VIEW);
+
+            ViewManager.Show(ViewName.LUCKY_BOX_VIEW, ViewManager.GetGoBackDatas(ViewName.LUCKY_BOX_STAR_VIEW));
+            // ViewManager.GoBackFrom(ViewName.LUCKY_BOX_VIEW);
         }
 
         private void ShowBonusList(List<ItemData> itemList)

+ 26 - 3
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs

@@ -5,6 +5,7 @@ using System.Collections.Generic;
 using FairyGUI;
 using System.Threading;
 using System.Threading.Tasks;
+using System;
 
 namespace GFGGame
 {
@@ -13,8 +14,10 @@ namespace GFGGame
         private UI_LuckyBoxStarUI _ui;
         private List<GObject> comStars = new List<GObject>();
 
-        private GameObject[] _effectObjs;
-        private GoWrapper[] _wrappers;
+        private List<GameObject> _gameObjects = new List<GameObject>();
+        private List<GoWrapper> _wrappers = new List<GoWrapper>();
+        private List<GameObject> _gameObjects1 = new List<GameObject>();
+        private List<GoWrapper> _wrappers1 = new List<GoWrapper>();
 
         private GObject curComStar;//当前选中的星星
         private Vector2 lastPos;//鼠标的上一个位置,每颗星星初始时默认为Vector2.right;
@@ -27,6 +30,11 @@ namespace GFGGame
         private bool isGuide = false;
         public override void Dispose()
         {
+            for (int i = 0; i < _gameObjects.Count; i++)
+            {
+                SceneController.DestroyObjectFromView(_gameObjects[i]);
+                SceneController.DestroyObjectFromView(_gameObjects1[i]);
+            }
             base.Dispose();
         }
 
@@ -49,7 +57,8 @@ namespace GFGGame
 
             _rewardList = LuckyBoxDataManager.Instance.RewardList;
             _ui.m_ctrlBuyType.selectedIndex = _rewardList != null && _rewardList.Count > 1 ? 1 : 0;
-            _ui.m_ctrlRewardsType.selectedIndex = (int)viewData;
+
+            _ui.m_ctrlRewardsType.selectedIndex = Array.IndexOf(LuckyBoxCfgArray.Instance.dataArray, LuckyBoxCfgArray.Instance.GetCfg((int)viewData)); ;
 
             ResetStartView();
 
@@ -71,6 +80,20 @@ namespace GFGGame
                 comStar.m_imgLine.width = imgLineWidth;
                 comStar.m_imgLine.rotation = 0;
 
+                GameObject gameObject = _gameObjects.Count > index ? _gameObjects[index] : null;
+                GoWrapper wrapper = _wrappers.Count > index ? _wrappers[index] : null;
+                string resPath = ResPathUtil.GetViewEffectPath("ui_ck", "ui_ck");
+                SceneController.AddObjectToView(gameObject, wrapper, comStar.m_holder, resPath, out gameObject, out wrapper);
+                if (_gameObjects.Count <= index) _gameObjects.Add(gameObject);
+                if (_wrappers.Count <= index) _wrappers.Add(wrapper);
+
+                GameObject gameObject1 = _gameObjects1.Count > index ? _gameObjects1[index] : null;
+                GoWrapper wrapper1 = _wrappers1.Count > index ? _wrappers1[index] : null;
+                string resPath1 = ResPathUtil.GetViewEffectPath("ui_ck", "ui_ck_dj");
+                SceneController.AddObjectToView(gameObject1, wrapper1, comStar.m_holder1, resPath1, out gameObject1, out wrapper1);
+                if (_gameObjects1.Count <= index) _gameObjects1.Add(gameObject);
+                if (_wrappers1.Count <= index) _wrappers1.Add(wrapper);
+
                 star.data = new Vector2(comStar.target.x, comStar.target.y);
                 comStars.Add(star);
 

+ 83 - 70
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -2,6 +2,8 @@ using FairyGUI;
 using UI.LuckyBox;
 using UI.CommonGame;
 using System;
+using System.Collections.Generic;
+using UnityEngine;
 
 namespace GFGGame
 {
@@ -10,6 +12,18 @@ namespace GFGGame
         private UI_LuckyBoxUI _ui;
         private ValueBarController _valueBarController;
 
+        private GameObject _gameObject;
+        private GoWrapper _wrapper;
+        private GameObject _gameObject1;
+        private GoWrapper _wrapper1;
+        private GameObject _gameObject2;
+        private GoWrapper _wrapper2;
+        private GameObject _gameObject3;
+        private GoWrapper _wrapper3;
+
+        private bool isActiveBoxOpen = false;
+        private int _selectedIndex = 0;
+
         public override void Dispose()
         {
             _valueBarController.Dispose();
@@ -29,8 +43,8 @@ namespace GFGGame
             _valueBarController = new ValueBarController(_ui.m_valueBar);
             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
             _ui.m_btnHome.onClick.Add(OnClickBtnHome);
-            _ui.m_btnBuyOne.onClick.Add(OnClickBtnBuyOne);
-            _ui.m_btnBuyTen.onClick.Add(OnClickBtnBuyTen);
+            _ui.m_btnBuyOne.target.onClick.Add(OnClickBtnBuyOne);
+            _ui.m_btnBuyTen.target.onClick.Add(OnClickBtnBuyTen);
             _ui.m_btnPreview.onClick.Add(OnClickBtnPreview);
             _ui.m_btnExchange.onClick.Add(OnClickBtnExChange);
             _ui.m_btnLeft.onClick.Add(() => { onClickChange(-1); });
@@ -39,7 +53,7 @@ namespace GFGGame
             _ui.m_listBg.itemRenderer = RenderListBgItem;
             _ui.m_c1.onChanged.Add(OnListBgScroll);//分页控制器
 
-            Reset();//初始默认值
+            // Reset();//初始默认值
         }
 
         protected override void OnShown()
@@ -49,25 +63,36 @@ namespace GFGGame
             EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateNormal);
             EventAgent.AddEventListener(ConstMessage.MONEY_CHANGE, UpdateNormal);
 
+            int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];
+            if (this.viewData != null)
+            {
+                object[] datas = (this.viewData as object[]);
+                if (datas != null && datas.Length > 1)
+                {
+                    boxId = (int)datas[1];
+                }
+                else
+                {
+                    boxId = (int)this.viewData;
+                }
+            }
 
+            LuckyBoxBonusDataCache.currentBoxId = boxId;
+            isActiveBoxOpen = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxDataManager.BOX_ID_1) >= 0;
 
-            _ui.m_listBg.numItems = 3;
-            int index = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxBonusDataCache.currentBoxId);
-            // if (!GuideDataManager.CheckGuideIsCompletedAtThisLogin(ConstGuideId.MAIN_UI_BTN_ZHAI_XING))
-            // {
-            //     index = _ui.m_listBg.numItems - 1;
-            // }
-            _ui.m_listBg.ScrollToView(index);
+            _ui.m_listBg.numItems = LuckyBoxDataManager.Instance.luckyBoxIds.Length;
+            _ui.m_listBg.ScrollToView(Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxBonusDataCache.currentBoxId));
             _ui.m_listBg.scrollPane.decelerationRate = 0.8f;
+
             Timers.inst.Add(1, 0, CheckTime);
 
             _valueBarController.OnShown();
             _valueBarController.Controller(4);
 
             onClickChange(0);
-
-
+            updateActiveBox();
         }
+
         private void RenderListBgItem(int index, GObject obj)
         {
             UI_ComListBgItem item = UI_ComListBgItem.Proxy(obj);
@@ -76,32 +101,31 @@ namespace GFGGame
         }
         private void CheckTime(object param = null)
         {
-            int startTime = LuckyBoxDataManager.Instance.startTime;
-            int endTime = LuckyBoxDataManager.Instance.endTime;
-            int curTime = DateUtils.Instance.GetCurTime();
-            if (curTime < startTime || curTime >= endTime)
+            // int index = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxDataManager.BOX_ID_1);
+            if (!isActiveBoxOpen)
             {
-                //抽奖活动未开启或已过时
-                if (_ui.m_c1.selectedIndex == 2)
-                {
-                    _ui.m_listBg.ScrollToView(0);
-                }
-                _ui.m_listBg.numItems = 2;
+                //活动未开启
+                LuckyBoxBonusDataCache.currentBoxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];
                 Timers.inst.Remove(CheckTime);
                 return;
             }
-            UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(2)).m_txtTime.text = DateUtils.Instance.getFormatBySecond(endTime - curTime);
+            int endTime = LuckyBoxDataManager.Instance.endTime;
+            int curTime = DateUtils.Instance.GetCurTime();
+            UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(0)).m_txtTime.text = DateUtils.Instance.getFormatBySecond(endTime - curTime, 1, 1);
         }
         private void OnListBgScroll()
         {
-            if (_ui.m_c1.selectedIndex == -1 || _ui.m_listBg.numChildren <= 0) return;
-            onClickChange(0);
+            // if (_ui.m_c1.selectedIndex == -1 || _ui.m_listBg.numChildren <= 0) return;
 
             UI_ComListBgItem item = UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(_ui.m_c1.selectedIndex));
-            item.m_c1.selectedIndex = _ui.m_c1.selectedIndex;
-
             LuckyBoxBonusDataCache.currentBoxId = LuckyBoxDataManager.Instance.luckyBoxIds[_ui.m_c1.selectedIndex];
+            item.m_txtTime.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
+            item.m_imgTitle.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
+            item.m_loaImg.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_3;
+            item.m_holder.visible = isActiveBoxOpen && LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
+            item.m_holder1.visible = isActiveBoxOpen && LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
 
+            onClickChange(0);
             UpdateNormal();
         }
 
@@ -111,19 +135,13 @@ namespace GFGGame
             _valueBarController.UpdateCJ(LuckyBoxBonusDataCache.currentBoxId);
 
 
-            _ui.m_comCostOne.m_txtCost.text = luckyBoxCfg.costNum.ToString();// string.Format("{0}",);
-            _ui.m_comCostTen.m_txtCost.text = luckyBoxCfg.costNumTen.ToString();// string.Format("{1}", );
+            _ui.m_comCostOne.m_txtCost.text = luckyBoxCfg.costNum.ToString();
+            _ui.m_comCostTen.m_txtCost.text = luckyBoxCfg.costNumTen.ToString();
             _ui.m_comCostOne.m_loaCost.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg.costID).res);
             _ui.m_comCostTen.m_loaCost.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg.costID).res);
 
-            // if (!GuideController.TryGuideByGuideId(_ui.m_btnBuyTen, ConstGuideId.MAIN_UI_BTN_ZHAI_XING, 1, true, "点击按钮,开始抽奖,可以抽到好看的服装哦"))
-            // {
-            //     GuideController.TryGuideByGuideId(_ui.m_btnBack, ConstGuideId.LUCKY_BOX_VIEW_BTN_BACK, 1, true, "点击按钮,返回主界面", 0, ConstGuideId.MAIN_UI_BTN_ZHAI_XING);
-            // }
-            // if (GuideDataManager.GetGuideCount(ConstGuideId.LUCKY_BOX_VIEW_BTN_BACK) <= 0)
-            // {
             Timers.inst.AddUpdate(UpdateToCheckGuide);
-            // }
+
             int count = LuckyBoxBonusDataCache.GetOwnedCount();
             _ui.m_txtOwned.SetVar("v1", "" + count).FlushVars();
 
@@ -132,38 +150,34 @@ namespace GFGGame
         private void onClickChange(int count)
         {
             _ui.m_c1.selectedIndex = _ui.m_c1.selectedIndex + count;
+            _ui.m_imgSpecial.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
+            _ui.m_btnRight.visible = _ui.m_c1.selectedIndex != _ui.m_listBg.numItems - 1;
+            _ui.m_btnLeft.visible = _ui.m_c1.selectedIndex != 0;
+            _ui.m_btnBuyOne.m_holder.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
+            _ui.m_btnBuyTen.m_holder.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
+        }
 
-            if (_ui.m_c1.selectedIndex == _ui.m_listBg.numItems - 1)
-            {
-                _ui.m_btnRight.visible = false;
-            }
-            else
-            {
-                _ui.m_btnRight.visible = true;
-            }
-            if (_ui.m_c1.selectedIndex == 0)
-            {
-                _ui.m_btnLeft.visible = false;
-            }
-            else
+        private void updateActiveBox()
+        {
+            if (isActiveBoxOpen)
             {
-                _ui.m_btnLeft.visible = true;
-            }
-        }
+                int index = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxDataManager.BOX_ID_1);
+                UI_ComListBgItem item = UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(index));
+                string resPath = ResPathUtil.GetViewEffectPath("ui_cj", "ui_cj_bt");
+                SceneController.AddObjectToView(_gameObject, _wrapper, item.m_holder, resPath, out _gameObject, out _wrapper);
+                string resPath3 = ResPathUtil.GetDressUpAnimationPath("dz_jiyuet");
+                SceneController.AddObjectToView(_gameObject3, _wrapper3, item.m_holder1, resPath3, out _gameObject3, out _wrapper3, 120);
 
+                string resPath1 = ResPathUtil.GetViewEffectPath("ui_cj", "ui_cj_sl");
+                SceneController.AddObjectToView(_gameObject1, _wrapper1, _ui.m_btnBuyOne.m_holder, resPath1, out _gameObject1, out _wrapper1);
+                SceneController.AddObjectToView(_gameObject2, _wrapper2, _ui.m_btnBuyTen.m_holder, resPath1, out _gameObject2, out _wrapper2);
 
+            }
+        }
         private void OnClickBtnExChange()
         {
-            int storeId = ConstStoreId.CLOTHING_STORE_ID;
-            if (_ui.m_c1.selectedIndex == 2 || _ui.m_c1.selectedIndex == 1 || _ui.m_c1.selectedIndex == -1)
-            {
-                storeId = ConstStoreId.LUCKY_BOX_STORE_ID;
-            }
-            else if (_ui.m_c1.selectedIndex == 0)
-            {
-                storeId = ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID;
-            }
-            ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { storeId }, new object[] { ViewName.LUCKY_BOX_VIEW });
+            int storeId = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1 ? ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID : ConstStoreId.LUCKY_BOX_STORE_ID;
+            ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { storeId }, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
             this.Hide();
         }
         private void OnClickBtnPreview()
@@ -177,7 +191,7 @@ namespace GFGGame
              {
                  ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNum);
                  LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(1);
-                 ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, _ui.m_c1.selectedIndex);
+                 ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, LuckyBoxBonusDataCache.currentBoxId, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
              });
 
         }
@@ -191,7 +205,7 @@ namespace GFGGame
                 Timers.inst.AddUpdate(UpdateToCheckGuide);
                 ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNumTen);
                 LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(10, true);
-                ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, _ui.m_c1.selectedIndex);
+                ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, LuckyBoxBonusDataCache.currentBoxId, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
             }
             else
             {
@@ -200,7 +214,7 @@ namespace GFGGame
                  {
                      ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNumTen);
                      LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(10, false);
-                     ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, _ui.m_c1.selectedIndex);
+                     ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, LuckyBoxBonusDataCache.currentBoxId, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
 
                  });
             }
@@ -211,7 +225,7 @@ namespace GFGGame
             {
                 if (GRoot.inst.GetTopWindow() == this.viewCom)
                 {
-                    if (GuideController.TryGuideByGuideId(_ui.m_btnBuyTen, ConstGuideId.MAIN_UI_BTN_ZHAI_XING, 1, true, "点击摘取十次"))
+                    if (GuideController.TryGuideByGuideId(_ui.m_btnBuyTen.target, ConstGuideId.MAIN_UI_BTN_ZHAI_XING, 1, true, "点击摘取十次"))
                     {
                         Timers.inst.Remove(UpdateToCheckGuide);
                     }
@@ -242,7 +256,7 @@ namespace GFGGame
         {
             GuideController.TryCompleteGuide(ConstGuideId.LUCKY_BOX_VIEW_BTN_BACK);
             this.Hide();
-            // ViewManager.Show(ViewName.MAINUI_VIEW, null, new object[] { ViewName.LUCKY_BOX_VIEW });
+
             Reset();
             ViewManager.GoBackFrom(ViewName.LUCKY_BOX_VIEW);
         }
@@ -250,12 +264,11 @@ namespace GFGGame
         private void OnClickBtnHome()
         {
             GameController.GoBackToMainView();
-            Reset();
+            // Reset();
         }
         private void Reset()
         {
-            LuckyBoxBonusDataCache.currentBoxId = 1;
-            _ui.m_c1.selectedIndex = 0;
+            LuckyBoxBonusDataCache.currentBoxId = LuckyBoxDataManager.BOX_ID_1;
         }
 
     }

+ 5 - 3
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -15,7 +15,7 @@ namespace GFGGame
         private GObject _unPasslevelItem;
         private GObject _endLevelItem;
 
-        private GameObject _effectObj;
+        private GameObject _gameObject;
         private GoWrapper _wrapper;
 
         public override void Dispose()
@@ -25,6 +25,8 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
+            SceneController.DestroyObjectFromView(_gameObject);
+
             base.Dispose();
         }
 
@@ -159,10 +161,10 @@ namespace GFGGame
                             if (levelItem.m_holder.visible)
                             {
                                 _unPasslevelItem = levelItem.target;
-                                _effectObj = null;
+                                _gameObject = null;
                                 _wrapper = null;
                                 string resPath = ResPathUtil.GetViewEffectPath("ui_gk", "ui_gk_sg");
-                                SceneController.AddObjectToView(_effectObj, _wrapper, levelItem.m_holder, resPath, out _effectObj, out _wrapper);
+                                SceneController.AddObjectToView(_gameObject, _wrapper, levelItem.m_holder, resPath, out _gameObject, out _wrapper);
                             }
                             if (level > endLevel)
                             {

+ 15 - 10
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

@@ -25,14 +25,14 @@ namespace GFGGame
         private const int _range = 30;//圆圈随机范围
         private float _time = 0;// 登峰造极按住的时间
 
-        private GameObject _effectObj0;
+        private GameObject _gameObject0;
         private GoWrapper _wrapper0;
-        private GameObject _effectObj0_1;
-        private GoWrapper _wrapper0_1;
-        private GameObject _effectObj1;
+        private GameObject _gameObject1;
         private GoWrapper _wrapper1;
-        private GameObject _effectObj1_1;
-        private GoWrapper _wrapper1_1;
+        private GameObject _gameObject2;
+        private GoWrapper _wrapper2;
+        private GameObject _gameObject3;
+        private GoWrapper _wrapper3;
         private Dictionary<int, RoleSkillCfg> _npcSkillDic;
 
         private bool playStop = false;
@@ -44,6 +44,11 @@ namespace GFGGame
                 GameObject.Destroy(_scenePrefab);
                 _scenePrefab = null;
             }
+            SceneController.DestroyObjectFromView(_gameObject0);
+            SceneController.DestroyObjectFromView(_gameObject1);
+            SceneController.DestroyObjectFromView(_gameObject2);
+            SceneController.DestroyObjectFromView(_gameObject3);
+
             base.Dispose();
         }
 
@@ -135,11 +140,11 @@ namespace GFGGame
         private void AddEffect()
         {
             string resPath0 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_sc");
-            SceneController.AddObjectToView(_effectObj0, _wrapper0, _ui.m_ComShieldMine.m_holder, resPath0, out _effectObj0, out _wrapper0);
-            SceneController.AddObjectToView(_effectObj1, _wrapper1, _ui.m_ComShieldNpc.m_holder, resPath0, out _effectObj1, out _wrapper1);
+            SceneController.AddObjectToView(_gameObject0, _wrapper0, _ui.m_ComShieldMine.m_holder, resPath0, out _gameObject0, out _wrapper0);
+            SceneController.AddObjectToView(_gameObject2, _wrapper2, _ui.m_ComShieldNpc.m_holder, resPath0, out _gameObject2, out _wrapper2);
             string resPath1 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_ps");
-            SceneController.AddObjectToView(_effectObj0_1, _wrapper0_1, _ui.m_ComShieldMine.m_holder1, resPath1, out _effectObj0_1, out _wrapper0_1);
-            SceneController.AddObjectToView(_effectObj1_1, _wrapper1_1, _ui.m_ComShieldNpc.m_holder1, resPath1, out _effectObj1_1, out _wrapper1_1);
+            SceneController.AddObjectToView(_gameObject1, _wrapper1, _ui.m_ComShieldMine.m_holder1, resPath1, out _gameObject1, out _wrapper1);
+            SceneController.AddObjectToView(_gameObject3, _wrapper3, _ui.m_ComShieldNpc.m_holder1, resPath1, out _gameObject3, out _wrapper3);
             _ui.m_ComShieldMine.m_holder.visible = false;
             _ui.m_ComShieldMine.m_holder1.visible = false;
             _ui.m_ComShieldNpc.m_holder.visible = false;

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -54,6 +54,17 @@ namespace GFGGame
         {
             _valueBarController.Dispose();
             _valueBarController = null;
+            SceneController.DestroyObjectFromView(_effectObj0);
+            SceneController.DestroyObjectFromView(_effectObj1);
+            SceneController.DestroyObjectFromView(_effectObj2);
+            SceneController.DestroyObjectFromView(_effectObj3);
+            SceneController.DestroyObjectFromView(_effectObj4);
+            SceneController.DestroyObjectFromView(_effectObj0_1);
+            SceneController.DestroyObjectFromView(_effectObj1_1);
+            SceneController.DestroyObjectFromView(_effectObj2_1);
+            SceneController.DestroyObjectFromView(_effectObj3_1);
+            SceneController.DestroyObjectFromView(_effectObj4_1);
+
             base.Dispose();
         }
 

BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_eshh1f.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_o1391g.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_o1391h.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas_o1391i.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes