| 
					
				 | 
			
			
				@@ -10,9 +10,21 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private UI_LuckBoxBonusUI _ui; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private List<GameObject> _effects = new List<GameObject>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private List<GoWrapper> _wrappers = new List<GoWrapper>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GameObject _effect = new GameObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GoWrapper _wrapper = new GoWrapper(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public override void Dispose() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (int i = 0; i < _effects.Count; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SceneController.DestroyObjectFromView(_effects[i]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.DestroyObjectFromView(_effect); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnInit() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -26,6 +38,18 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             InitAllItem(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_bg.touchable = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_bg.onClick.Add(OnClickBg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            string resPath = ResPathUtil.GetViewEffectPath("ui_ck", "ui_ck_zl"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (int i = 0; i < 10; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                GameObject gameObject0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                GoWrapper wrapper0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                GGraph holder = _ui.target.GetChild("item" + i).asCom.GetChild("holder").asGraph; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SceneController.AddObjectToView(null, null, holder, resPath, out gameObject0, out wrapper0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _effects.Add(gameObject0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.AddObjectToView(_effect, _wrapper, _ui.m_itemOne.GetChild("holder").asGraph, resPath, out _effect, out _wrapper); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnShown() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -79,7 +103,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     UI_LuckyBoxBonusItem itemUI = UI_LuckyBoxBonusItem.Proxy(itemObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     UpdateItem(itemUI, itemData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Timers.inst.Add(0.1f * i, 1, (object param) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Timers.inst.Add(0.3f * i, 1, (object param) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         itemObject.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         if ((int)param == 9) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -128,16 +152,19 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void UpdateItem(UI_LuckyBoxBonusItem itemUI, ItemData itemData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemData.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            itemUI.m_icon.url = ResPathUtil.GetIconPath(itemCfg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            itemUI.m_imgNew.visible = ItemDataManager.GetItemNum(itemData.id) == 1 ? true : false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            itemUI.m_comIcon.m_icon.url = ResPathUtil.GetIconPath(itemCfg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            itemUI.m_comIcon.m_imgNew.visible = ItemDataManager.GetItemNum(itemData.id) == 1 ? true : false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string itemName = itemCfg.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (itemData.num > 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 itemName += "x" + itemData.num; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            itemUI.m_txtName.text = itemName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            RarityIconController.UpdateRarityIcon(itemUI.m_rarity, itemData.id, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            itemUI.m_comIcon.m_txtName.text = itemName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            RarityIconController.UpdateRarityIcon(itemUI.m_comIcon.m_rarity, itemData.id, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             itemUI.target.data = itemData.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            itemUI.m_comIcon.target.SetScale(0, 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            itemUI.m_t0.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // GTween.To(0, 1, 0.2f).SetTarget(itemUI).OnUpdate((GTweener t) => { itemUI.target.SetScale(t.value.x, t.value.x); }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void InitAllItem() 
			 |