zhangyuqian 1 жил өмнө
parent
commit
755a055c65
35 өөрчлөгдсөн 2000 нэмэгдсэн , 0 устгасан
  1. 8 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame.meta
  2. 74 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_Button6.cs
  3. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_Button6.cs.meta
  4. 110 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameStartUI.cs
  5. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameStartUI.cs.meta
  6. 110 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameUI.cs
  7. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameUI.cs.meta
  8. 80 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_TZFEGameView.cs
  9. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_TZFEGameView.cs.meta
  10. 77 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItem.cs
  11. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItem.cs.meta
  12. 77 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItembtn.cs
  13. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItembtn.cs.meta
  14. 86 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_descItem.cs
  15. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_descItem.cs.meta
  16. 80 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_numItem.cs
  17. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_numItem.cs.meta
  18. 71 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_passRewardItem.cs
  19. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_passRewardItem.cs.meta
  20. 8 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame.meta
  21. 73 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/Card.cs
  22. 12 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/Card.cs.meta
  23. 147 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameStartView.cs
  24. 11 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameStartView.cs.meta
  25. 314 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameView.cs
  26. 11 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameView.cs.meta
  27. 334 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/TZFEGameVIew.cs
  28. 11 0
      GameClient/Assets/Game/HotUpdate/Views/MiniGame/TZFEGameVIew.cs.meta
  29. 8 0
      GameClient/Assets/ResIn/UI/MiniGame.meta
  30. BIN
      GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0.png
  31. 96 0
      GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0.png.meta
  32. BIN
      GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0_1.png
  33. 96 0
      GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0_1.png.meta
  34. BIN
      GameClient/Assets/ResIn/UI/MiniGame/MiniGame_fui.bytes
  35. 7 0
      GameClient/Assets/ResIn/UI/MiniGame/MiniGame_fui.bytes.meta

+ 8 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ea1fe01078ba4f248bad79cc1467c22e
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 74 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_Button6.cs

@@ -0,0 +1,74 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_Button6
+    {
+        public GButton target;
+        public GTextField m_title1;
+        public GTextField m_title2;
+        public const string URL = "ui://wgkh30qj806ni";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "Button6";
+        private static UI_Button6 _proxy;
+
+        public static UI_Button6 Create(GObject gObject = null)
+        {
+            var ui = new UI_Button6();
+            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_Button6 Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_Button6();
+            }
+            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_title1 = (GTextField)comp.GetChild("title1");
+            m_title2 = (GTextField)comp.GetChild("title2");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_title1 = null;
+            m_title2 = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_Button6.cs.meta

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

+ 110 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameStartUI.cs

@@ -0,0 +1,110 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_FlipGameStartUI
+    {
+        public GComponent target;
+        public Controller m_c1;
+        public GLoader m_btnBack;
+        public GLoader m_nameIcon;
+        public GList m_settingTypeList;
+        public GLoader m_shop;
+        public GLoader m_showGame;
+        public GLoader m_gameStart;
+        public GLoader m_ticketIcon;
+        public GList m_passRewardList;
+        public GList m_failRewardList;
+        public GList m_descList;
+        public GLoader m_ticket;
+        public GLoader m_addIcon;
+        public GTextField m_ticketNum;
+        public const string URL = "ui://wgkh30qj806nf";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "FlipGameStartUI";
+        private static UI_FlipGameStartUI _proxy;
+
+        public static UI_FlipGameStartUI Create(GObject gObject = null)
+        {
+            var ui = new UI_FlipGameStartUI();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_FlipGameStartUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_FlipGameStartUI();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)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_c1 = comp.GetController("c1");
+            m_btnBack = (GLoader)comp.GetChild("btnBack");
+            m_nameIcon = (GLoader)comp.GetChild("nameIcon");
+            m_settingTypeList = (GList)comp.GetChild("settingTypeList");
+            m_shop = (GLoader)comp.GetChild("shop");
+            m_showGame = (GLoader)comp.GetChild("showGame");
+            m_gameStart = (GLoader)comp.GetChild("gameStart");
+            m_ticketIcon = (GLoader)comp.GetChild("ticketIcon");
+            m_passRewardList = (GList)comp.GetChild("passRewardList");
+            m_failRewardList = (GList)comp.GetChild("failRewardList");
+            m_descList = (GList)comp.GetChild("descList");
+            m_ticket = (GLoader)comp.GetChild("ticket");
+            m_addIcon = (GLoader)comp.GetChild("addIcon");
+            m_ticketNum = (GTextField)comp.GetChild("ticketNum");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_c1 = null;
+            m_btnBack = null;
+            m_nameIcon = null;
+            m_settingTypeList = null;
+            m_shop = null;
+            m_showGame = null;
+            m_gameStart = null;
+            m_ticketIcon = null;
+            m_passRewardList = null;
+            m_failRewardList = null;
+            m_descList = null;
+            m_ticket = null;
+            m_addIcon = null;
+            m_ticketNum = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameStartUI.cs.meta

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

+ 110 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameUI.cs

@@ -0,0 +1,110 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_FlipGameUI
+    {
+        public GComponent target;
+        public GLoader m_loaBg;
+        public GList m_cardList;
+        public GLoader m_back;
+        public GTextField m_timeText;
+        public GProgressBar m_ScareBar;
+        public GImage m_star11;
+        public GGroup m_star1;
+        public GImage m_star21;
+        public GImage m_star22;
+        public GGroup m_star2;
+        public GImage m_star31;
+        public GImage m_star32;
+        public GImage m_star33;
+        public GGroup m_star3;
+        public const string URL = "ui://wgkh30qjjmg10";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "FlipGameUI";
+        private static UI_FlipGameUI _proxy;
+
+        public static UI_FlipGameUI Create(GObject gObject = null)
+        {
+            var ui = new UI_FlipGameUI();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_FlipGameUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_FlipGameUI();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)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_loaBg = (GLoader)comp.GetChild("loaBg");
+            m_cardList = (GList)comp.GetChild("cardList");
+            m_back = (GLoader)comp.GetChild("back");
+            m_timeText = (GTextField)comp.GetChild("timeText");
+            m_ScareBar = (GProgressBar)comp.GetChild("ScareBar");
+            m_star11 = (GImage)comp.GetChild("star11");
+            m_star1 = (GGroup)comp.GetChild("star1");
+            m_star21 = (GImage)comp.GetChild("star21");
+            m_star22 = (GImage)comp.GetChild("star22");
+            m_star2 = (GGroup)comp.GetChild("star2");
+            m_star31 = (GImage)comp.GetChild("star31");
+            m_star32 = (GImage)comp.GetChild("star32");
+            m_star33 = (GImage)comp.GetChild("star33");
+            m_star3 = (GGroup)comp.GetChild("star3");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_loaBg = null;
+            m_cardList = null;
+            m_back = null;
+            m_timeText = null;
+            m_ScareBar = null;
+            m_star11 = null;
+            m_star1 = null;
+            m_star21 = null;
+            m_star22 = null;
+            m_star2 = null;
+            m_star31 = null;
+            m_star32 = null;
+            m_star33 = null;
+            m_star3 = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_FlipGameUI.cs.meta

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

+ 80 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_TZFEGameView.cs

@@ -0,0 +1,80 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_TZFEGameView
+    {
+        public GComponent target;
+        public GLoader m_bg;
+        public GList m_numList;
+        public GLoader m_backBtn;
+        public GTextField m_score;
+        public const string URL = "ui://wgkh30qjjmg19";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "TZFEGameView";
+        private static UI_TZFEGameView _proxy;
+
+        public static UI_TZFEGameView Create(GObject gObject = null)
+        {
+            var ui = new UI_TZFEGameView();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_TZFEGameView Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_TZFEGameView();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)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_bg = (GLoader)comp.GetChild("bg");
+            m_numList = (GList)comp.GetChild("numList");
+            m_backBtn = (GLoader)comp.GetChild("backBtn");
+            m_score = (GTextField)comp.GetChild("score");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_bg = null;
+            m_numList = null;
+            m_backBtn = null;
+            m_score = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_TZFEGameView.cs.meta

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

+ 77 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItem.cs

@@ -0,0 +1,77 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_cardItem
+    {
+        public GComponent target;
+        public Controller m_state;
+        public GButton m_card;
+        public GTextField m_id;
+        public const string URL = "ui://wgkh30qjjmg11";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "cardItem";
+        private static UI_cardItem _proxy;
+
+        public static UI_cardItem Create(GObject gObject = null)
+        {
+            var ui = new UI_cardItem();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_cardItem Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_cardItem();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)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_state = comp.GetController("state");
+            m_card = (GButton)comp.GetChild("card");
+            m_id = (GTextField)comp.GetChild("id");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_state = null;
+            m_card = null;
+            m_id = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItem.cs.meta

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

+ 77 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItembtn.cs

@@ -0,0 +1,77 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_cardItembtn
+    {
+        public GButton target;
+        public Controller m_state;
+        public GLoader m_icon1;
+        public GLoader m_icon3;
+        public const string URL = "ui://wgkh30qjjmg18";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "cardItembtn";
+        private static UI_cardItembtn _proxy;
+
+        public static UI_cardItembtn Create(GObject gObject = null)
+        {
+            var ui = new UI_cardItembtn();
+            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_cardItembtn Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_cardItembtn();
+            }
+            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_state = comp.GetController("state");
+            m_icon1 = (GLoader)comp.GetChild("icon1");
+            m_icon3 = (GLoader)comp.GetChild("icon3");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_state = null;
+            m_icon1 = null;
+            m_icon3 = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_cardItembtn.cs.meta

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

+ 86 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_descItem.cs

@@ -0,0 +1,86 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_descItem
+    {
+        public GComponent target;
+        public GLoader m_star1;
+        public GLoader m_star2;
+        public GLoader m_star3;
+        public GTextField m_desc;
+        public GLoader m_rewardIcon;
+        public GTextField m_rewardNum;
+        public const string URL = "ui://wgkh30qj806nh";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "descItem";
+        private static UI_descItem _proxy;
+
+        public static UI_descItem Create(GObject gObject = null)
+        {
+            var ui = new UI_descItem();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_descItem Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_descItem();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)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_star1 = (GLoader)comp.GetChild("star1");
+            m_star2 = (GLoader)comp.GetChild("star2");
+            m_star3 = (GLoader)comp.GetChild("star3");
+            m_desc = (GTextField)comp.GetChild("desc");
+            m_rewardIcon = (GLoader)comp.GetChild("rewardIcon");
+            m_rewardNum = (GTextField)comp.GetChild("rewardNum");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_star1 = null;
+            m_star2 = null;
+            m_star3 = null;
+            m_desc = null;
+            m_rewardIcon = null;
+            m_rewardNum = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_descItem.cs.meta

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

+ 80 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_numItem.cs

@@ -0,0 +1,80 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_numItem
+    {
+        public GComponent target;
+        public GLoader m_icon;
+        public GTextField m_numTxt;
+        public Transition m_t0;
+        public Transition m_t1;
+        public const string URL = "ui://wgkh30qjjmg1a";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "numItem";
+        private static UI_numItem _proxy;
+
+        public static UI_numItem Create(GObject gObject = null)
+        {
+            var ui = new UI_numItem();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_numItem Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_numItem();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)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_icon = (GLoader)comp.GetChild("icon");
+            m_numTxt = (GTextField)comp.GetChild("numTxt");
+            m_t0 = comp.GetTransition("t0");
+            m_t1 = comp.GetTransition("t1");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_icon = null;
+            m_numTxt = null;
+            m_t0 = null;
+            m_t1 = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_numItem.cs.meta

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

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_passRewardItem.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.MiniGame
+{
+    public partial class UI_passRewardItem
+    {
+        public GComponent target;
+        public GLoader m_passReward1;
+        public const string URL = "ui://wgkh30qj806ng";
+        public const string PACKAGE_NAME = "MiniGame";
+        public const string RES_NAME = "passRewardItem";
+        private static UI_passRewardItem _proxy;
+
+        public static UI_passRewardItem Create(GObject gObject = null)
+        {
+            var ui = new UI_passRewardItem();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_passRewardItem Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_passRewardItem();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)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_passReward1 = (GLoader)comp.GetChild("passReward1");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_passReward1 = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MiniGame/UI_passRewardItem.cs.meta

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

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 64fc987371649ec4b9cb62e45dae0382
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 73 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/Card.cs

@@ -0,0 +1,73 @@
+using FairyGUI;
+
+public class Card : GButton
+{
+    GObject _back;
+    GObject _front;
+
+    public override void ConstructFromXML(FairyGUI.Utils.XML xml)
+    {
+        base.ConstructFromXML(xml);
+
+        _back = GetChild("n0");
+        _front = GetChild("icon");
+        _front.visible = false;
+    }
+
+    public bool opened
+    {
+        get
+        {
+            return _front.visible;
+        }
+
+        set
+        {
+            GTween.Kill(this);
+
+            _front.visible = value;
+            _back.visible = !value;
+        }
+    }
+
+    public void SetPerspective()
+    {
+        _front.displayObject.perspective = true;
+        _back.displayObject.perspective = true;
+    }
+
+    public void Turn()
+    {
+        if (GTween.IsTweening(this))
+            return;
+
+        bool toOpen = !_front.visible;
+        GTween.To(0, 180, 0.5f).SetTarget(this).SetEase(EaseType.QuadOut).OnUpdate(TurnInTween).SetUserData(toOpen);
+    }
+
+    void TurnInTween(GTweener tweener)
+    {
+        bool toOpen = (bool)tweener.userData;
+        float v = tweener.value.x;
+        if (toOpen)
+        {
+            _back.rotationY = v;
+            _front.rotationY = -180 + v;
+            if (v > 90)
+            {
+                _front.visible = true;
+                _back.visible = false;
+            }
+        }
+        else
+        {
+            _back.rotationY = -180 + v;
+            _front.rotationY = v;
+            if (v > 90)
+            {
+                _front.visible = false;
+                _back.visible = true;
+            }
+        }
+    }
+}

+ 12 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/Card.cs.meta

@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: f508880d965b60742b34521caee31d63
+timeCreated: 1465454889
+licenseType: Pro
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 147 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameStartView.cs

@@ -0,0 +1,147 @@
+using System;
+using System.Collections.Generic;
+using ET;
+using FairyGUI;
+using UI.MiniGame;
+using UnityEngine;
+
+namespace GFGGame
+{
+    public class FlipGameStartView : BaseView
+    {
+        private UI_FlipGameStartUI _ui;
+        //后续这里改成读表内容
+        private List<string> name = new List<string>(){ "翻牌", "2048" };
+        private List<string> CustemsDesc = new List<string>()
+        {
+            "首次评价达到卓越奖励:",
+            "首次评价达到优秀奖励:",
+            "首次评价达到良好奖励:",         
+        };
+
+        private int currentGame = 0;
+        
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_FlipGameStartUI.PACKAGE_NAME;
+            _ui = UI_FlipGameStartUI.Create();
+            this.viewCom = _ui.target;
+            isfullScreen = true;
+
+            _ui.m_settingTypeList.itemRenderer = RenderListType;
+            _ui.m_descList.itemRenderer = RenderDescList;
+            _ui.m_failRewardList.itemRenderer = RenderFailReward;
+            _ui.m_passRewardList.itemRenderer = RenderPassReward;
+            _ui.m_btnBack.onClick.Add(OnClickBtnBack);
+            _ui.m_shop.onClick.Add(OnClickBtnShop);
+            _ui.m_addIcon.onClick.Add(OnClickBtnAdd);
+            _ui.m_gameStart.onClick.Add(OnClickBtnStart);
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+            UpdateView();
+            UpdateList();
+        }
+        protected override void OnHide()
+        {
+
+            base.OnHide();
+        }
+        private void UpdateView()
+        {
+            //_ui.m_showGame.url = _ui.m_c1.selectedIndex;
+            _ui.m_ticketNum.text = "999";
+        }
+        private void UpdateList()
+        {
+            _ui.m_settingTypeList.numItems = name.Count;
+            _ui.m_descList.numItems = 3;
+            _ui.m_passRewardList.numItems = name.Count;
+            _ui.m_failRewardList.numItems = name.Count;
+        }
+        private void OnClickBtnBack()
+        {
+            this.Hide();
+        }
+        private void RenderFailReward(int index, GObject item)
+        {
+            //这里也读表
+        }
+        private void RenderPassReward(int index, GObject item)
+        {
+            //这里也读表
+        }
+        private void RenderDescList(int index, GObject item)
+        {
+            UI_descItem descItem = UI_descItem.Proxy(item);
+            descItem.m_desc.text = CustemsDesc[index];
+            descItem.m_rewardNum.text = index.ToString();
+            switch (index)
+            {
+                case 0:
+                        break;
+                case 1:
+                    descItem.m_star3.visible = false;
+                    break;
+                case 2:
+                    descItem.m_star3.visible = false;
+                    descItem.m_star2.visible = false;
+                    break;
+                default:
+                        break;
+                            
+            };
+            UI_descItem.ProxyEnd();
+            //这里也读表
+        }
+
+        private void RenderListType(int index, GObject item)
+        {
+            UI_Button6 button6 = UI_Button6.Proxy(item);
+            button6.m_title1.text = name[index];
+            button6.m_title2.text = name[index];  
+            button6.target.onClick.Add(OnClickChangeGame);
+            button6.target.data = name;
+            UI_Button6.ProxyEnd();
+        }
+        private void OnClickChangeGame(EventContext param)
+        {
+            if(currentGame == _ui.m_c1.selectedIndex)
+            {
+                return;
+            }
+            currentGame = _ui.m_c1.selectedIndex;
+            UpdateView();
+            UpdateList();
+        }
+        private void OnClickBtnShop()
+        {
+
+        }
+        private void OnClickBtnAdd()
+        {
+
+        }
+        private void OnClickBtnStart()
+        {
+            if(_ui.m_c1.selectedIndex == 0)
+            {
+                ViewManager.Show<FlipGameView>();
+                this.Hide();
+            }
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameStartView.cs.meta

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

+ 314 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameView.cs

@@ -0,0 +1,314 @@
+using System;
+using System.Collections.Generic;
+using ET;
+using FairyGUI;
+using UI.MiniGame;
+using UnityEngine;
+
+namespace GFGGame
+{
+    public class FlipGameView : BaseView
+    {
+        private UI_FlipGameUI _ui;
+        //卡牌数量(配置)
+        private int cardNum = 16;
+        //当前卡牌数量
+        private int currentCardNum = 16;
+        //当前翻开卡牌
+        //"state" 0:未翻开,1:已翻开,2:已消除
+        private List<Dictionary<string, int>> cardList = new List<Dictionary<string, int>>();
+        //消除所需数量(配置)
+        private int needNum = 2;
+        //游戏结束时长(配置)
+        private int gameTime = 120;
+        //游戏当前时长
+        private int currentGameTime = 120;
+        //行数
+        private int rows = 0;
+        //列数
+        private int columns = 4;
+        System.Random rand;
+        //通关评价
+        private List<int> CustemsNum = new List<int>()
+        {
+            10,
+            30,
+            60,
+        };
+        private List<string> CustemsName = new List<string>()
+        {
+            "良好",
+            "优秀",
+            "卓越"
+        };
+
+        //假数据
+        private int[] cardArray = new int[] { 1,1, 2,2,  3, 3 , 4, 4 ,  5, 5 ,  6, 6 ,  7, 7 , 8, 8  };
+
+        Card _c1 = new Card();
+        private float waitTime = 0.6f;
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_FlipGameUI.PACKAGE_NAME;
+            _ui = UI_FlipGameUI.Create();
+            this.viewCom = _ui.target;
+            isfullScreen = true;
+            _ui.m_cardList.itemRenderer = ListCardItem;
+            _ui.m_back.onClick.Add(OnClickBtnBack);
+
+            UIObjectFactory.SetPackageItemExtension("ui://MiniGame/CardComponent", typeof(Card));
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+            UpdateView();
+            UpdateList();
+        }
+        protected override void OnHide()
+        {
+            _ui.m_cardList.RemoveChildrenToPool();
+            base.OnHide();
+            cardList.Clear();
+            Timers.inst.Remove(UpdateTime);
+            Timers.inst.Remove(canTouch);
+            Timers.inst.Remove(UpdateCard);
+        }
+
+        private void OnClickBtnBack()
+        {
+            Timers.inst.Remove(UpdateTime);
+            AlertUI.Show("是否退出游戏")
+            .SetLeftButton(true, "取消", (object data) =>
+            {
+                Timers.inst.Add(1.0f, 0, UpdateTime);
+            })
+            .SetRightButton(true, "确定", (object data) =>
+            {
+                this.Hide();
+            });
+        }
+
+        private void ListCardItem(int index, GObject item)
+        {
+            UI_cardItem cardItem = UI_cardItem.Proxy(item);
+            Dictionary<string, int> itemInfo = new Dictionary<string, int>();
+
+            //备注的后续都读表
+            //cardItem.m_icon.url = "";
+            if (cardItem.target.data == null)
+            {
+                cardItem.target.onClick.Add(OnClickCardItem);
+            }
+            _c1 = (Card)cardItem.m_card;
+            _c1.opened = false;
+            _c1.SetPerspective();
+
+            itemInfo.Add("index", index);
+            itemInfo.Add("id", cardArray[index]);
+            itemInfo.Add("state", 0);
+            cardItem.m_id.text = itemInfo["id"].ToString();
+            cardItem.target.data = itemInfo;
+            UI_cardItem.ProxyEnd();
+        }
+        private void UpdateView()
+        {
+            currentGameTime = gameTime;
+            currentCardNum = cardNum;
+            needNum = 2;
+            rand = new System.Random();
+            //洗牌
+            RandomCardList(cardArray, cardArray.Length);
+            //
+            _ui.m_timeText.text = string.Format("倒计时:{0}", currentGameTime);
+            _ui.m_ScareBar.max = gameTime;
+            _ui.m_ScareBar.min = 0;
+            _ui.m_ScareBar.value = gameTime;
+            _ui.m_star1.SetPosition(((float)CustemsNum[0]/(float)gameTime)*_ui.m_ScareBar.width,_ui.m_star1.position.y, _ui.m_star1.position.z);
+            _ui.m_star2.SetPosition(((float)CustemsNum[1] / (float)gameTime) * _ui.m_ScareBar.width, _ui.m_star1.position.y, _ui.m_star1.position.z);
+            _ui.m_star3.SetPosition(((float)CustemsNum[2] / (float)gameTime) * _ui.m_ScareBar.width, _ui.m_star1.position.y, _ui.m_star1.position.z);
+            //CustemsNum = ;  
+            //计时器
+            Timers.inst.Add(1.0f, 0, UpdateTime);
+        }
+
+        private void UpdateList()
+        {
+            _ui.m_cardList.columnCount = columns;
+            _ui.m_cardList.numItems = cardNum;
+        }
+        private void OnClickCardItem(EventContext context)
+        {
+            GObject cardItem = context.sender as GObject;
+            Dictionary<string, int> cardInfo = (Dictionary<string, int>)cardItem.data;
+            UI_cardItem item = UI_cardItem.Proxy(_ui.m_cardList.GetChildAt(cardInfo["index"]));
+            Card card = (Card)item.m_card;
+            if (cardList.Count == 0)
+            {
+                //当前翻开列表为空,直接处理翻开,添加
+                cardInfo["state"] = 1;
+                //翻牌
+                card.Turn();
+                _ui.m_cardList.touchable = false;
+                Timers.inst.Add(waitTime, 1, canTouch);
+                //
+                cardList.Add(cardInfo);
+            }
+            else
+            {
+                bool isLast = false;
+                for (int i = 0; i < cardList.Count; i++)
+                {
+                    //点击到已翻开的就翻回去,
+                    if (cardInfo["index"] == cardList[i]["index"])
+                    {
+                        //翻牌
+                        card.Turn();
+                        _ui.m_cardList.touchable = false;
+                        Timers.inst.Add(waitTime, 1, canTouch);
+                        //
+                        cardList.RemoveAt(i);
+                        isLast = true;
+                        break;
+                    }  
+                }
+                if (!isLast)
+                {
+                    //翻牌
+                    card.Turn();
+                    _ui.m_cardList.touchable = false;
+                    cardInfo["state"] = 1;
+                    cardList.Add(cardInfo);
+                    Timers.inst.Add(waitTime, 1, UpdateCard);
+
+                }
+            }
+            UI_cardItem.ProxyEnd();
+        }
+
+        //这里是处理已翻开的数量
+        private void UpdateCard(object param = null)
+        {
+            bool isClear = true;
+            for (int i = 1; i < cardList.Count; i++)
+            {
+                if(cardList[0]["id"] != cardList[i]["id"])
+                {
+                    isClear = false;
+                    break;
+                }
+                isClear = true;
+            }
+            if(isClear)
+            {
+                if (cardList.Count == needNum)
+                {
+                    for (int i = 0; i < cardList.Count; i++)
+                    {
+                        cardList[i]["state"] = 2;
+                        //消除
+                        _ui.m_cardList.GetChildAt(cardList[i]["index"]).visible = false;
+                    }
+                    currentCardNum -= cardList.Count;
+                    cardList.Clear();
+                    _ui.m_cardList.touchable = true;
+                    if(currentCardNum <= 0)
+                    {
+                        Gameover(true);
+                    }
+                }
+            }
+            else
+            {
+                _ui.m_cardList.touchable = false;
+                //= UI_cardItem.Proxy(_ui.m_cardList.GetChildAt(cardList[0]["index"]));
+                for (int i = 0; i < cardList.Count; i++)
+                {
+                    UI_cardItem item = UI_cardItem.Proxy(_ui.m_cardList.GetChildAt(cardList[i]["index"]));
+                    //翻回去
+                    Card card = (Card)item.m_card;
+                    card.Turn();
+                    //card = null;
+                    UI_cardItem.ProxyEnd();
+                }
+                Timers.inst.Add(waitTime, 1, canTouch);
+                cardList.Clear();
+                
+            }
+        }
+        private void UpdateTime(object param = null)
+        {
+            currentGameTime--;
+            _ui.m_ScareBar.value = currentGameTime;
+            _ui.m_timeText.text = string.Format ("倒计时:{0}", currentGameTime);
+            if(currentGameTime <= 0)
+            {
+                Timers.inst.Remove(UpdateTime);
+                Gameover(false);
+            }
+        }
+
+        private void canTouch(object param = null)
+        {
+            _ui.m_cardList.touchable = true;
+        }
+
+        private void Gameover(bool isPass = false)
+        {
+            Timers.inst.Remove(UpdateTime);
+            if (!isPass)
+            {
+                AlertUI.Show("游戏时间到")
+                .SetLeftButton(false)
+                .SetRightButton(true, "确定", (object data) =>
+                {
+                    this.Hide();
+                });
+            }
+            else
+            {
+                string custemsName = "";
+                for(int i = CustemsNum.Count - 1; i>=0; i--)
+                {
+                    if(currentGameTime >= CustemsNum[i])
+                    {
+                        custemsName = CustemsName[i];
+                        break;
+                    }
+                }
+                AlertUI.Show(string.Format("恭喜通过,所用时长:{0},通关评价:{1}", currentGameTime, custemsName))
+                .SetLeftButton(false)
+                .SetRightButton(true, "确定", (object data) =>
+                {
+                    this.Hide();
+                });
+            }
+        }
+        //洗牌
+        private void RandomCardList(int[] array, int length)
+        {
+            int index;
+            int value;
+            for (int i = length - 1; i >= 0; i--)
+            {
+                index = rand.Next(0, i + 1);
+                value = array[i];
+                array[i] = array[index];
+                array[index] = value;
+            }
+        }
+
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/FlipGameView.cs.meta

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

+ 334 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/TZFEGameVIew.cs

@@ -0,0 +1,334 @@
+using System;
+using System.Collections.Generic;
+using ET;
+using FairyGUI;
+using UI.MiniGame;
+using UnityEngine;
+
+namespace GFGGame
+{
+    public class TZFEGameView : BaseView
+    {
+        private UI_TZFEGameView _ui;
+
+        private int[,] Map;
+        enum Direction { up, down, left, right };
+        private Vector2 touchFirst = Vector2.zero;//手指开始按下的位置
+        private Vector2 touchSecond = Vector2.zero;//手指拖动的位置
+        private System.Random rand;
+
+        //这个是数组的行数和列数,mapLength一般采用行列一样
+        private int rows = 5;
+        private int columns = 5;
+        private int mapLength = 5;
+        //得分
+        private int score = 0;
+        private int scoreMax = 0;
+        private int targetNum = 2048;
+        private bool isMove;
+        private bool isMerge;
+        private struct NumPos
+        {
+            public int x;
+            public int y;
+            public bool isCreat;
+        }
+        private List<NumPos> numPosArray = new List<NumPos>();
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_TZFEGameView.PACKAGE_NAME;
+            _ui = UI_TZFEGameView.Create();
+            this.viewCom = _ui.target;
+            isfullScreen = true;
+            _ui.m_numList.itemRenderer = ListNumItem;
+            _ui.target.onTouchBegin.Add(OnClickBegin);
+            _ui.target.onTouchEnd.Add(OnClickEnd);
+            _ui.m_backBtn.onClick.Add(OnClickBtnBack);
+            Map = new int[rows, columns];
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+            InitMap();
+            UpdateView();
+            UpdateList();
+        }
+        protected override void OnHide()
+        {
+            base.OnHide();
+        }
+
+        private void OnClickBtnBack()
+        {
+            this.Hide();
+        }
+
+        private void InitMap()
+        {
+            for(int i = 0; i < rows; i++)
+                for(int j = 0; j < columns; j++)
+                {
+                    Map[i, j] = 0;
+                }
+        }
+        private void UpdateView()
+        {
+            score = 0;
+            targetNum = 2048;
+            _ui.m_score.text = string.Format("分数:{0}", score.ToString());
+            rand = new System.Random();
+        }
+        private void UpdateScore()
+        {
+            _ui.m_score.text = string.Format("分数:{0}", score.ToString());
+        }
+        private void UpdateList()
+        {
+            RandomCreateNum();
+            _ui.m_numList.numItems = rows * columns;
+        }
+
+        private void ListNumItem(int index, GObject item)
+        {
+            UI_numItem numItem = UI_numItem.Proxy(item);
+            int x = index / rows;
+            int y = index % columns;
+            numItem.m_numTxt.text = Map[x,y].ToString();
+            //这个后续根据数组内容替换图片
+            //_ui.m_icon.url = 
+            UI_numItem.ProxyEnd();
+        }
+
+        //随机生成数字2(%90),4(%10)
+        private void RandomCreateNum()
+        {
+            bool gameOver = false;
+            for(int i = 0;i< rows; i++)
+            {
+                for(int j = 0; j< columns; j++)
+                {
+                    if (Map[i, j] == 0)
+                    {
+                        gameOver = true;
+                        break;
+                    }
+                }
+            }
+            if(!gameOver)
+            {
+                // 还需要加,无法移动,无法合并时,游戏结束
+            }
+            while (true)
+            {
+                int x = rand.Next(0, rows);
+                int y = rand.Next(0, columns);
+                NumPos item;
+                int num;
+                int randNum = rand.Next(1, 11);
+                if(randNum <= 9)
+                {
+                    num = 2;
+                }
+                else
+                {
+                    num = 4 ;
+                }
+                if (Map[x,y] == 0)
+                {
+                    Map[x, y] = num;
+                    item.x = x;
+                    item.y = y;
+                    item.isCreat = true;
+                    numPosArray.Add(item);
+                    break;
+                }
+            }
+        }
+
+        /// <summary>
+        /// 去零
+        /// </summary>
+        /// <param name="row">对于一行或一列元素</param>
+        private void Remove0(int[] row)
+        {
+            int pos = 0;
+            int[] rowB = new int[row.Length];
+            for (int i = 0; i < row.Length; i++)
+            {
+                rowB[i] = row[i];
+            }
+            for (int i = 0; i < row.Length; ++i)
+            {
+                if (row[i] != 0)
+                {
+                    row[pos] = row[i];
+                    pos++;
+                } 
+            }
+            for (; pos < row.Length; ++pos) row[pos] = 0;
+
+            for(int i= 0; i< row.Length; i++)
+            {
+                if(row[i] != rowB[i])
+                {
+                    isMove = true;
+                }
+            }
+        }
+        /// <summary>
+        /// 合并
+        /// </summary>
+        /// <param name="row">对于一行或一列元素,完成一次向左合并的操作</param>
+        private void Merge(int[] row , int colrow = 0)
+        {
+            Remove0(row);
+            // 相邻相同则合并
+            for (int i = 0; i < row.Length - 1; ++i)
+            {
+                if (row[i] != 0 && row[i] == row[i + 1])
+                {
+                    row[i] *= 2;
+                    row[i + 1] = 0;
+                    score += row[i];
+                    UpdateScore();
+                    if (row[i] == targetNum)
+                    {
+                        //游戏结束
+                    }
+                    isMerge = true;
+                }
+            }
+            Remove0(row);
+        }
+
+        /// <summary>
+        /// 上移
+        /// </summary>
+        /// <param name="map">原棋盘</param>
+        /// <returns></returns>
+        private void Up(int[,] map)
+        {
+            int[] arr = new int[rows];
+            for (int j = 0; j < columns; ++j)
+            {
+                for (int i = 0; i < rows; ++i) arr[i] = map[i, j];
+                Merge(arr);
+                for (int i = 0; i < rows; ++i) map[i, j] = arr[i];
+            }
+        }
+        /// <summary>
+        /// 下移
+        /// </summary>
+        private int[,] Down(int[,] map)
+        {
+            int[] arr = new int[rows];
+            for (int j = 0; j < columns; ++j)
+            {
+                for (int i = 0; i < rows; ++i) arr[rows - 1 - i] = map[i, j];
+                Merge(arr);
+                for (int i = 0; i < rows; ++i) map[i, j] = arr[rows - 1 - i];
+            }
+            return map;
+        }
+
+        /// <summary>
+        /// 左移
+        /// </summary>
+        private int[,] Left(int[,] map)
+        {
+            int[] arr = new int[columns];
+            for (int i = 0; i < rows; ++i)
+            {
+                for (int j = 0; j < columns; ++j) arr[j] = map[i, j];
+                Merge(arr);
+                for (int j = 0; j < columns; ++j) map[i, j] = arr[j];
+            }
+            return map;
+        }
+
+        /// <summary>
+        /// 右移
+        /// </summary>
+        private int[,] Right(int[,] map)
+        {
+            int[] arr = new int[columns];
+            for (int i = 0; i < rows; ++i)
+            {
+                for (int j = 0; j < columns; ++j) arr[columns - 1 - j] = map[i, j];
+                Merge(arr);
+                for (int j = 0; j < columns; ++j) map[i, j] = arr[columns - 1 - j];
+            }
+            return map;
+        }
+        /// <summary>
+        /// 进行一次移动操作
+        /// </summary>
+        /// <param name="map">原棋盘</param>
+        /// <param name="dir">移动的方向(枚举)</param>
+        private void Move(int[,] map, Direction dir)
+        {
+            switch (dir)
+            {
+                case Direction.up:
+                    Up(map); break;
+                case Direction.down:
+                    Down(map); break;
+                case Direction.left:
+                    Left(map); break;
+                case Direction.right:
+                    Right(map); break;
+            }
+            if(isMerge || isMove)
+            {
+                isMerge = false;
+                isMove = false;
+                UpdateList();
+                numPosArray.Clear();
+            }
+        }
+
+        private void OnClickBegin()
+        {
+            touchFirst = Input.mousePosition;//记录开始按下的位置
+        }
+        private void OnClickEnd()
+        {
+                touchSecond = Input.mousePosition;//记录拖动的位置
+                if (touchSecond.x < touchFirst.x && Math.Abs(touchSecond.x - touchFirst.x) > Math.Abs(touchSecond.y - touchFirst.y))
+                {
+                    //向左滑动
+                    Move(Map, Direction.left);
+                }
+                if (touchSecond.x > touchFirst.x && Math.Abs(touchSecond.x - touchFirst.x) > Math.Abs(touchSecond.y - touchFirst.y))
+                {
+                    //向右滑动
+                    Move(Map, Direction.right);
+                }
+                if (touchSecond.y < touchFirst.y && Math.Abs(touchSecond.y - touchFirst.y) > Math.Abs(touchSecond.x - touchFirst.x))
+                {
+                    //向下滑动
+                    Move(Map, Direction.down);
+                }
+                if (touchSecond.y > touchFirst.y && Math.Abs(touchSecond.y - touchFirst.y) > Math.Abs(touchSecond.x - touchFirst.x))
+                {
+                    //向上滑动
+                    Move(Map, Direction.up);
+                }
+                touchFirst = touchSecond;
+        }
+
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/MiniGame/TZFEGameVIew.cs.meta

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

+ 8 - 0
GameClient/Assets/ResIn/UI/MiniGame.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 717ce23134ea61f4d8db91427239e278
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0.png


+ 96 - 0
GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0.png.meta

@@ -0,0 +1,96 @@
+fileFormatVersion: 2
+guid: 5c2ddc318291d2e4da1750980a3b35a6
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 11
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 0
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  vTOnly: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: 1
+    aniso: 1
+    mipBias: 0
+    wrapU: 1
+    wrapV: 1
+    wrapW: 1
+  nPOTScale: 0
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 1
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 1
+  spriteTessellationDetail: -1
+  textureType: 8
+  textureShape: 1
+  singleChannelComponent: 0
+  flipbookRows: 1
+  flipbookColumns: 1
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  ignorePngGamma: 0
+  applyGammaDecoding: 0
+  platformSettings:
+  - serializedVersion: 3
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    physicsShape: []
+    bones: []
+    spriteID: 5e97eb03825dee720800000000000000
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0_1.png


+ 96 - 0
GameClient/Assets/ResIn/UI/MiniGame/MiniGame_atlas0_1.png.meta

@@ -0,0 +1,96 @@
+fileFormatVersion: 2
+guid: 5d307345c390bf94da7949c2de50be57
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 11
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 0
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  vTOnly: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: 1
+    aniso: 1
+    mipBias: 0
+    wrapU: 1
+    wrapV: 1
+    wrapW: 1
+  nPOTScale: 0
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 1
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 1
+  spriteTessellationDetail: -1
+  textureType: 8
+  textureShape: 1
+  singleChannelComponent: 0
+  flipbookRows: 1
+  flipbookColumns: 1
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  ignorePngGamma: 0
+  applyGammaDecoding: 0
+  platformSettings:
+  - serializedVersion: 3
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    physicsShape: []
+    bones: []
+    spriteID: 5e97eb03825dee720800000000000000
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/MiniGame/MiniGame_fui.bytes


+ 7 - 0
GameClient/Assets/ResIn/UI/MiniGame/MiniGame_fui.bytes.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: e8687b1c3c750724d90b43f0e9a8366b
+TextScriptImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: