| 
					
				 | 
			
			
				@@ -1,803 +1,579 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// using FairyGUI; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// using UnityEngine; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// using UI.Main; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// using System.Collections; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// using System; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// using System.Collections.Generic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using FairyGUI; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using UnityEngine; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using UI.Main; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using System.Collections; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using System; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using System.Collections.Generic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public class StoryFightTargetScoreView : BaseView 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private UI_StoryFightTargetScoreUI _ui; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _sceneObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _scenePrefab; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private double _targetScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private double _score;//当前总分数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private int _partId;//当前评分part 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private double _skillScore = 0;//当前卡牌技能分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private bool _showCard = false;//当前是否显示卡牌技能 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private double _mainScore;//总主属性分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private double _targetMainScore;//战斗目标总主属性分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private const int _range = 30;//圆圈随机范围 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private int _currentTime = BeginTime.PART_FIGHT_BEGIN; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private int _skillCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private float _speed = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private bool _isAutoPlay = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private StoryLevelCfg _levelCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject3; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper3; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject4; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper4; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject5; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper5; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject7; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper7; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject8; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper8; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject9; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper9; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject10; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper10; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject11; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper11; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject12; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper12; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject13; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper13; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject14; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper14; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject15; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper15; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject16; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper16; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject17; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper17; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject18; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper18; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GameObject _gameObject19; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private GoWrapper _wrapper19; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private List<GameObject> _gameObjects = new List<GameObject>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private List<GoWrapper> _wrappers = new List<GoWrapper>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private List<LongPressGesture> _listLongPress = new List<LongPressGesture>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         // private GoWrapper _wrapper5; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         // private Dictionary<int, RoleSkillCfg> _npcSkillDic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private bool playStop = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         public override void Dispose() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_sceneObject != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GameObject.Destroy(_sceneObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _sceneObject = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject0, _wrapper0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject1, _wrapper1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject2, _wrapper2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject3, _wrapper3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject4, _wrapper4); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject5, _wrapper5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject6, _wrapper6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject7, _wrapper7); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject8, _wrapper8); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject9, _wrapper9); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject11, _wrapper11); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject12, _wrapper12); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject13, _wrapper13); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject14, _wrapper14); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject15, _wrapper15); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject16, _wrapper16); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject17, _wrapper17); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject18, _wrapper18); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.DestroyObjectFromView(_gameObject19, _wrapper19); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             for (int i = 0; i < _gameObjects.Count; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 SceneController.DestroyObjectFromView(_gameObjects[i], _wrappers[i]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             for (int i = 0; i < _listLongPress.Count; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _listLongPress[i].Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _listLongPress.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_ui != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             base.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void AddEffect() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath0 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_sc"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject0, null, _ui.m_ComShieldMine.m_holder, resPath0, out _gameObject0, out GoWrapper _wrapper0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject2, null, _ui.m_ComShieldNpc.m_holder, resPath0, out _gameObject2, out GoWrapper _wrapper2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath1 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_ps"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject1, null, _ui.m_ComShieldMine.m_holder1, resPath1, out _gameObject1, out GoWrapper _wrapper1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject3, null, _ui.m_ComShieldNpc.m_holder1, resPath1, out _gameObject3, out GoWrapper _wrapper3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath2 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jn_tg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject4, null, _ui.m_ComRoleSkillMineAdd.m_holder, resPath2, out _gameObject4, out GoWrapper _wrapper4, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject5, null, _ui.m_ComRoleSkillNpcAdd.m_holder, resPath2, out _gameObject5, out GoWrapper _wrapper5, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath5 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jn_jc"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject7, null, _ui.m_ComRoleSkillMineMinus.m_holder, resPath5, out _gameObject7, out GoWrapper _wrapper7, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject8, null, _ui.m_ComRoleSkillNpcMinus.m_holder, resPath5, out _gameObject8, out GoWrapper _wrapper8, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath6 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jn_dz"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject9, null, _ui.m_ComRoleSkillMineBreak.m_holder, resPath6, out _gameObject9, out GoWrapper _wrapper9, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject10, null, _ui.m_ComRoleSkillNpcBreak.m_holder, resPath6, out _gameObject10, out GoWrapper _wrapper10, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath7 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jn_jy"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject11, null, _ui.m_ComRoleSkillMineShield.m_holder, resPath7, out _gameObject11, out GoWrapper _wrapper11, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject12, null, _ui.m_ComRoleSkillNpcShield.m_holder, resPath7, out _gameObject12, out GoWrapper _wrapper12, 70); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath8 = ResPathUtil.GetViewEffectPath("ui_zhandou", "zd_df_cheng"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject13, null, _ui.m_comMineCircle.m_holder, resPath8, out _gameObject13, out GoWrapper _wrapper13, 59); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath8_1 = ResPathUtil.GetViewEffectPath("ui_zhandou", "zd_df_lv_sr"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject14, null, _ui.m_comTargetCircle.m_holder, resPath8_1, out _gameObject14, out GoWrapper _wrapper14, 59); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath9 = ResPathUtil.GetViewEffectPath("ui_zhandou", "zd_df_tw"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject15, null, _ui.m_holderPartScore, resPath9, out _gameObject15, out GoWrapper _wrapper15); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject16, null, _ui.m_holderPartScoreNpc, resPath9, out _gameObject16, out GoWrapper _wrapper16); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject17, null, _ui.m_holderAddScore, resPath9, out _gameObject17, out GoWrapper _wrapper17); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject18, null, _ui.m_holderAddScoreNpc, resPath9, out _gameObject18, out GoWrapper _wrapper18); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath10 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jdt_cz"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject19, null, _ui.m_proScore.m_holder1, resPath10, out _gameObject19, out GoWrapper _wrapper19); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath4 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jdt"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.AddObjectToView(_gameObject6, null, _ui.m_proScore.m_holder, resPath4, out _gameObject6, out GoWrapper _wrapper6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             string resPath3 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jn_an"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             for (int i = 0; i < _skillCount; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GComponent btnSkill = _ui.target.GetChild("btnSkill" + i).asCom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UI_ComBtnSkill item = UI_ComBtnSkill.Proxy(btnSkill); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 SceneController.AddObjectToView(null, null, item.m_holder, resPath3, out GameObject _gameObject, out GoWrapper _wrapper); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UI_ComBtnSkill.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _gameObjects.Add(_gameObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _wrappers.Add(_wrapper); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComShieldMine.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComShieldMine.m_holder1.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComShieldNpc.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComShieldNpc.m_holder1.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         protected override void Init() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             base.Init(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui = UI_StoryFightTargetScoreUI.Create(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             viewCom = _ui.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             isfullScreen = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneFightTargetScore")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             RoleSkillCfg[] roleSkillCfgs = RoleSkillCfgArray.Instance.dataArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _skillCount = roleSkillCfgs.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             for (int i = 0; i < roleSkillCfgs.Length; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GComponent btnSkill = _ui.target.GetChild("btnSkill" + i).asCom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 btnSkill.data = roleSkillCfgs[i]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GLoader icon = btnSkill.GetChild("icon").asLoader; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 icon.onClick.Add(() => { OnBtnSkillClick(btnSkill); }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 LongPressGesture longPressGesture = new LongPressGesture(btnSkill); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 longPressGesture.once = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 LongPressGesture.TRIGGER = 1f; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 longPressGesture.onAction.Add(OnLongPress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 longPressGesture.onEnd.Add(OnLongEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _listLongPress.Add(longPressGesture); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnBack.onClick.Add(OnBtnBackClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         protected override void OnInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             base.OnInit(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnSkip.onClick.Add(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 Skip(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.target.onClick.Add(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_btnSkill0.m_icon.touchable = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnSkill0.target.onClick.Add(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 if (_partId == 0 && GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0 && playStop) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     playStop = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     _ui.m_comMineCircle.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                         CircleScoreEnd(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     _ui.m_comTargetCircle.m_t0.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnSpeedUp.onClick.Add(OnBtnSpeedUp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             AddEffect(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         protected override void AddEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             base.AddEventListener(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             EventAgent.AddEventListener(ConstMessage.SHOW_CARD_SKILL_END, UpdateCircleResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         protected override void OnShown() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             base.OnShown(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_sceneObject == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _sceneObject = GameObject.Instantiate(_scenePrefab); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             MyDressUpHelper.dressUpObj.setSceneObj(_sceneObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             MyDressUpHelper.dressUpObj.UpdateRoleView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SceneController.UpdateFightTarget(fightCfg.targetRes, _sceneObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proScore.m_txtNpcScore.text = fightCfg.targetName + " 0"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proScore.m_txtMineScore.text = RoleDataManager.roleName + " 0"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnBack.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _speed = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_levelCfg.type == ConstInstanceZonesType.Field) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_btnBack.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             ScoreSystemData.Instance.SetEquipDicWithType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _partId = FightScoreCfgArray.Instance.dataArray[0].id; ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _score = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _targetScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _mainScore = ScoreSystemData.Instance.GetMainScore(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _targetMainScore = fightCfg.targetMainScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UpdateNormal(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.Add(0.5f / _speed, 1, CircleScoreStart);//评分开始 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.AddUpdate(CheckGuide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void UpdateNormal() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_partId == 1 && GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0)//引导中禁止自动战斗 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _speed = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 FightDataManager.Instance.autoPlay = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_btnSkill0.m_icon.touchable = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_levelCfg.type == ConstInstanceZonesType.Field || FightDataManager.Instance.autoPlay) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _isAutoPlay = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             RoleSkillCfg[] roleSkillCfgs = RoleSkillCfgArray.Instance.dataArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             for (int i = 0; i < roleSkillCfgs.Length; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GComponent btnSkill = _ui.target.GetChild("btnSkill" + i).asCom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UI_ComBtnSkill item = UI_ComBtnSkill.Proxy(btnSkill); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 item.m_txtCount.text = roleSkillCfgs[i].limiteCount.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 item.m_icon.touchable = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 if (_isAutoPlay) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     item.m_icon.touchable = !_isAutoPlay; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     OnBtnSkillClick(btnSkill); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UI_ComBtnSkill.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnSpeedUp.visible = _isAutoPlay; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnSpeedUp.title = "x" + _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // if (_index == 0 && GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             //     _ui.m_btnSkill0.target.touchable = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void CircleScoreStart(object param) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _skillScore = 0;//技能附加分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _showCard = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             List<PassivitySkillLvlCfg> validSkillCfgs = ScoreSystemData.Instance.GetValidSkills(_currentTime, InstanceZonesDataManager.currentCardId, 0, _partId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _skillScore = ScoreSystemData.Instance.GetPartItemSkillScore(validSkillCfgs, _mainScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _showCard = ScoreSystemData.Instance.IsShowCard(InstanceZonesDataManager.currentCardId, validSkillCfgs); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_showCard) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 ViewManager.Show<StorySkillView>(_skillScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UpdateCircleResult(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         //更新部件评分结果,播放结果动画 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void UpdateCircleResult() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             double partScore = ScoreSystemData.Instance.GetPartItemScore(_partId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.m_txtCount.text = ((int)Math.Round(partScore)).ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _score += (int)Math.Round((partScore + _skillScore)); ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             FightDataManager.Instance.totalScore = (int)Math.Round(_score); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             double targetScore = fightCfg.targetPartsScoreArr[_partId - 1] * ConstScoreSystem.PART_SCORE; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.m_txtCount.text = ((int)Math.Round(targetScore)).ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _targetScore += targetScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             FightDataManager.Instance.npcTotalScore = (int)Math.Round(_targetScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             ReleaseNpcSkill(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             PlayScoreAni(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         //顶部评分进度条 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void UpdateProgressBar() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proScore.m_txtNpcScore.text = string.Format("{0} {1}", fightCfg.targetName, (int)Math.Round(_targetScore)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proScore.m_txtMineScore.text = string.Format("{0} {1}", RoleDataManager.roleName, (int)Math.Round(_score)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // _ui.m_proScore.m_comBar.m_imgAni.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             double proportion = (_score + _targetScore) > 0 ? _score / (_score + _targetScore) : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             float width = (float)(proportion * _ui.m_proScore.target.width); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.5f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     _ui.m_proScore.m_comBar.target.width = t.value.x; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 }); ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         //释放NPC技能 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void ReleaseNpcSkill() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (fightCfg.targerSkillArr.Length >= _partId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 RoleSkillCfg cfg = RoleSkillCfgArray.Instance.GetCfg(fightCfg.targerSkillArr[_partId - 1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 if (cfg == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 SetSkillValue(cfg, SkillDataManager.NPC); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void PlayScoreAni() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.m_txtPart.text = FightScoreCfgArray.Instance.GetCfg(_partId).name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _gameObject13.SetActive(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _gameObject14.SetActive(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.m_txtPart.text = FightScoreCfgArray.Instance.GetCfg(_partId).name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_partId == 1 && GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comMineCircle.m_t0.Play(1, 0, 0, 0.75f, () => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     _ui.m_comMineCircle.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     playStop = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comTargetCircle.m_t0.Play(1, 0, 0, 0.75f, () => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     _ui.m_comTargetCircle.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.m_t0.timeScale = _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 PlayScoreTWEffect(_ui.m_holderPartScore, _ui.m_comMineCircle.target.position, _ui.m_proScore.target.position); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.m_t0.timeScale = _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 PlayScoreTWEffect(_ui.m_holderPartScoreNpc, _ui.m_comTargetCircle.target.position, _ui.m_proScore.target.position + new Vector3(_ui.m_proScore.target.width, 0, 0)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.Add(2.5f / _speed, 1, CircleScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void PlayScoreTWEffect(GGraph holderScore, Vector3 startValue, Vector3 endValue) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             holderScore.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTween.To(startValue, endValue, 0.5f).SetTarget(holderScore).OnUpdate((GTweener t) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 holderScore.position = t.value.vec2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }).OnComplete(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 holderScore.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UpdateProgressBar(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void CircleScoreEnd(object param) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             //当前部件评分结束 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _gameObject13.SetActive(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _gameObject14.SetActive(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _partId++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_partId > FightScoreCfgArray.Instance.dataArray.Length) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 Timers.inst.Add(1.5f, 1, Skip); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comTargetCircle.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comMineCircle.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 Timers.inst.Add(0.5f / _speed, 1, CircleScoreStart);//评分结束 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         /***************************************************主动技能**************************************************/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void OnBtnSkillClick(GComponent obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // if (_isAutoPlay) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComBtnSkill item = UI_ComBtnSkill.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             RoleSkillCfg cfg = item.target.data as RoleSkillCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             int count = (int)item.m_icon.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (count >= cfg.limiteCount) return;//超过最大限制次数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             item.m_c1.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             item.m_icon.data = count + 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             item.m_txtCount.text = (cfg.limiteCount - (count + 1)).ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComBtnSkill.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SetCdState(obj, cfg.cd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             SetSkillValue(cfg, SkillDataManager.MINE); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void SetCdState(GComponent obj, int time) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComBtnSkill item = UI_ComBtnSkill.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GProgressBar bar = item.m_proCD; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             bar.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             bar.value = 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             bar.TweenValue(0, (float)time / 100 / _speed).OnComplete((GTweener tweener) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //               { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   GProgressBar bar1 = (GProgressBar)tweener.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   UI_ComBtnSkill item1 = UI_ComBtnSkill.Proxy(bar1.parent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   int count = (int)item1.m_icon.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   RoleSkillCfg cfg = item1.target.data as RoleSkillCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   item1.m_c1.selectedIndex = count >= cfg.limiteCount ? 2 : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   item1.m_proCD.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   if (_isAutoPlay) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       OnBtnSkillClick(item1.target); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   UI_ComBtnSkill.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //               }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComBtnSkill.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void SetSkillValue(RoleSkillCfg cfg, int role) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (cfg.buff == SkillDataManager.SKILL_ADD) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UpdateAddUI(cfg, role); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else if (cfg.buff == SkillDataManager.SKILL_MINUS) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UpdateMinusUI(cfg, role); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else if (cfg.buff == SkillDataManager.SKILL_BREAK) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UpdateBreakUI(cfg, role); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else if (cfg.buff == SkillDataManager.SKILL_SHIELD) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UpdateShieldUI(cfg, role); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void UpdateAddUI(RoleSkillCfg cfg, int role) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComRoleSkill comRoleSkillScore = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillMineAdd : _ui.m_ComRoleSkillNpcAdd; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comRoleSkillScore.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             int score = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (role == SkillDataManager.MINE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 score = (int)_mainScore * cfg.value / 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _score += score; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 score = (int)_targetMainScore * cfg.value / 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _targetScore += score; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // comRoleSkillScore.m_comRoleSkill.m_c1.selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comRoleSkillScore.m_txtScore.SetVar("count", "+" + score.ToString()).FlushVars(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comRoleSkillScore.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comRoleSkillScore.m_t0.timeScale = _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comRoleSkillScore.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     comRoleSkillScore.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     GGraph graph = role == SkillDataManager.MINE ? _ui.m_holderAddScore : _ui.m_holderAddScoreNpc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     Vector3 targetPos = role == SkillDataManager.MINE ? _ui.m_proScore.target.position : _ui.m_proScore.target.position + new Vector3(_ui.m_proScore.target.width, 0, 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                     PlayScoreTWEffect(graph, comRoleSkillScore.target.position, targetPos); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         //荆钗效果 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void UpdateMinusUI(RoleSkillCfg cfg, int role) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GProgressBar comSkillMinus = role == SkillDataManager.MINE ? _ui.m_proMinusMine : _ui.m_proMinusNpc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComSkillShield targetComSkillShield = role == SkillDataManager.MINE ? _ui.m_ComShieldNpc : _ui.m_ComShieldMine; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillMinus.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillMinus.value = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillMinus.TweenValue(100, 2f / _speed).OnComplete(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //               { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   comSkillMinus.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   if (targetComSkillShield.m_holder.visible) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       targetComSkillShield.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       targetComSkillShield.m_holder1.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   UI_ComRoleSkill comRoleSkillScore = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillNpcMinus : _ui.m_ComRoleSkillMineMinus; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   comRoleSkillScore.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   //   comRoleSkillScore.m_c1.selectedIndex = role == SkillDataManager.MINE ? 0 : 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   int score = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   if (role == SkillDataManager.MINE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       score = (int)_targetMainScore * cfg.value / 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       _targetScore -= score; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       if (_targetScore < 0) _targetScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       score = (int)_mainScore * cfg.value / 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       _score -= score; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       if (_score < 0) _score = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   comRoleSkillScore.m_txtScore.SetVar("count", "-" + score.ToString()).FlushVars(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   comRoleSkillScore.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   comRoleSkillScore.m_t0.timeScale = _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   comRoleSkillScore.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                       comRoleSkillScore.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   UpdateProgressBar(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //               }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void UpdateBreakUI(RoleSkillCfg cfg, int role) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GProgressBar targetSkillMinus = role == SkillDataManager.MINE ? _ui.m_proMinusNpc : _ui.m_proMinusMine; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             targetSkillMinus.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComRoleSkill1 comSkillBreak = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillMineBreak : _ui.m_ComRoleSkillNpcBreak; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillBreak.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillBreak.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillBreak.m_t0.timeScale = _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillBreak.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 comSkillBreak.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTweener twener = GTween.GetTween(targetSkillMinus, TweenPropType.Progress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (twener != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 twener.Kill(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         //锦衣效果 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void UpdateShieldUI(RoleSkillCfg cfg, int role) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComSkillShield comSkillShield = role == SkillDataManager.MINE ? _ui.m_ComShieldMine : _ui.m_ComShieldNpc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillShield.m_holder.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillShield.m_holder1.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.Add((float)cfg.duration / 100 / _speed, 1, (param) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //               { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   // comSkillShield.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                   comSkillShield.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //               }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             UI_ComRoleSkill1 comSkillShieldEff = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillMineShield : _ui.m_ComRoleSkillNpcShield; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillShieldEff.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillShieldEff.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillShieldEff.m_t0.timeScale = _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             comSkillShieldEff.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 comSkillShieldEff.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void OnBtnSpeedUp() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             FightDataManager.Instance.fightSpeed = FightDataManager.Instance.fightSpeed == 1 ? FightDataManager.Instance.maxFightSpeed : 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _speed = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_btnSpeedUp.title = "x" + _speed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void OnLongPress(EventContext context) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             LongPressGesture gesture = (LongPressGesture)context.sender; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             RoleSkillCfg skillCfg = gesture.host.data as RoleSkillCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comSkillTips.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (skillCfg.skillId <= 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comSkillTips.m_c1.selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comSkillTips.target.x = gesture.host.x + 90; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comSkillTips.m_c1.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _ui.m_comSkillTips.target.x = gesture.host.x - 240; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comSkillTips.m_txtTitle.text = skillCfg.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comSkillTips.m_txtContent.text = skillCfg.desc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void OnLongEnd() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comSkillTips.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void OnBtnBackClick() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // Reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             InstanceZonesController.OnFinishStoryLevel(InstanceZonesDataManager.currentLevelCfgId, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             this.Hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         protected override void OnHide() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             base.OnHide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (_sceneObject != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GameObject.Destroy(_sceneObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 _sceneObject = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             // _npcSkillDic.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.Remove(CheckGuide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         protected override void RemoveEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             base.RemoveEventListener(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             EventAgent.RemoveEventListener(ConstMessage.SHOW_CARD_SKILL_END, UpdateCircleResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private async void Skip(object param = null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             FightDataManager.Instance.totalScore = (int)Math.Round(_score); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             FightDataManager.Instance.npcTotalScore = (int)Math.Round(_targetScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             await InstanceZonesController.CheckStoryFightResult(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void Reset() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comSkillTips.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proScore.target.max = 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proScore.target.value = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proScore.m_comBar.target.width = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comMineCircle.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_comTargetCircle.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proMinusMine.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_proMinusNpc.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTweener twenerMine = GTween.GetTween(_ui.m_proMinusMine, TweenPropType.Progress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (twenerMine != null) twenerMine.Kill(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTweener twenerNpc = GTween.GetTween(_ui.m_proMinusNpc, TweenPropType.Progress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (twenerNpc != null) twenerNpc.Kill(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTween.Kill(_ui.m_proScore.m_comBar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTween.Kill(_ui.m_holderPartScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GTween.Kill(_ui.m_holderPartScoreNpc); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             //   GTween.To(startValue, endValue, 0.5f).SetTarget(holderScore) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _gameObject13.SetActive(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _gameObject14.SetActive(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComShieldMine.m_holder.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComShieldNpc.m_holder1.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillMineAdd.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillMineMinus.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillNpcAdd.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillNpcMinus.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillMineBreak.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillNpcBreak.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillMineShield.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _ui.m_ComRoleSkillNpcShield.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             for (int i = 0; i < _skillCount; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GComponent btnSkill = _ui.target.GetChild("btnSkill" + i).asCom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 btnSkill.GetChild("icon").asLoader.data = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 btnSkill.GetController("c1").selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _isAutoPlay = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.Remove(CircleScoreStart); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.Remove(Skip); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             Timers.inst.Remove(CircleScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _gameObjects.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             _wrappers.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         private void CheckGuide(object param) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 UpdateToCheckGuide(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 Timers.inst.Remove(CheckGuide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         protected override void UpdateToCheckGuide(object param) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (!ViewManager.CheckIsTopView(this.viewCom)) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             if (playStop) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //                 GuideController.TryGuide(_ui.m_comMineCircle.target, ConstGuideId.TARGET_FIGHT, 1, "这里可以观察双方的分数计算。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GuideController.TryGuide(_ui.m_btnSkill0.target, ConstGuideId.TARGET_FIGHT, 2, "使用技能,可以增加胜出的几率哦,长按查看技能说明。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //             GuideController.TryCompleteGuide(ConstGuideId.TARGET_FIGHT, 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private UI_StoryFightTargetScoreUI _ui; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // private GameObject _sceneObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // private GameObject _scenePrefab; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private StoryLevelCfg _levelCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private StoryFightCfg _fightCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GameObject _gameObject2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GoWrapper _wrapper2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GameObject _gameObject1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GoWrapper _wrapper1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GameObject _gameObject5; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private GoWrapper _wrapper5; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private NTexture _nTexture; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private bool _isAutoPlay = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // private float _speed = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private int _partId;//当前评分part 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private double _score;//当前总分数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private double _targetScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private double _mainScore;//总主属性分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private double _targetMainScore;//战斗目标总主属性分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private int _skillScore = 0;//当前卡牌技能分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private int _targetSkillScore = 0;//当前卡牌技能分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private List<int> _roundTimes = new List<int>();//作用时机为对战开始的技能持续的回合数,为0表示技能未被触发或技能作用时机不是对战开始 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private List<int> _targetRoundTimes = new List<int>();//对方作用时机为对战开始的技能持续的回合数,为0表示技能未被触发或技能作用时机不是对战开始 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private int _currentTime = BeginTime.PART_ALL_FIGHT_BEGIN; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private int _prefectCount = 0;//卓越点击数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private float _time = 0;// 登峰造极按住的时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public override void Dispose() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // if (_sceneObject != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //     GameObject.Destroy(_sceneObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //     _sceneObject = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.DestroyObjectFromView(_gameObject1, _wrapper1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.DestroyObjectFromView(_gameObject2, _wrapper2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.DestroyObjectFromView(_gameObject5, _wrapper5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_ui != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            base.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void AddEffect() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            string resPath10 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jdt_cz"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.AddObjectToView(_gameObject1, null, _ui.m_proScore.m_holder1, resPath10, out _gameObject1, out _wrapper1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            string resPath4 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jdt"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.AddObjectToView(_gameObject2, null, _ui.m_proScore.m_holder, resPath4, out _gameObject2, out _wrapper2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            string resPath5 = ResPathUtil.GetViewEffectPath("ui_zhandou", "zd_df_dfzj"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SceneController.AddObjectToView(null, null, _ui.m_comAllPerfect.m_holder, resPath5, out _gameObject5, out _wrapper5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override void OnInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            base.OnInit(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui = UI_StoryFightTargetScoreUI.Create(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            viewCom = _ui.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            isfullScreen = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // _scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneFightTargetScore")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_loaBg.url = ResPathUtil.GetFightBgImgPath("fightBg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_LoaMask.url = ResPathUtil.GetFightBgImgPath("fightBg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnBack.onClick.Add(OnBtnBackClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.target.onClick.Add(PartScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnSpeedUp.onClick.Add(OnBtnSpeedUp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t1.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_t0.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_t1.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_t2.ignoreEngineTimeScale = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AddEffect(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override void AddEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            base.AddEventListener(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventAgent.AddEventListener(ConstMessage.SHOW_CARD_SKILL_END, SkillScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override void RemoveEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            base.RemoveEventListener(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventAgent.RemoveEventListener(ConstMessage.SHOW_CARD_SKILL_END, SkillScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override void OnShown() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            base.OnShown(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _nTexture = new NTexture(FightDataManager.Instance.RoleTextuex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("Screen:" + UnityEngine.Screen.width + "  " + UnityEngine.Screen.height + "   _nTexture:" + _nTexture.width + "   " + _nTexture.height); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_imgRole.SetSize(GRoot.inst.width, GRoot.inst.height); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_imgRole.texture = _nTexture; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // SceneController.UpdateFightTarget(_fightCfg.targetRes, _sceneObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _nTexture = new NTexture(FightDataManager.Instance.RoleTextuex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("Screen:" + UnityEngine.Screen.width + "  " + UnityEngine.Screen.height + "   _nTexture:" + _nTexture.width + "   " + _nTexture.height); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            RoleInfoManager.Instance.UpdateHead(_ui.m_myHead, RoleDataManager.headId, RoleDataManager.headBorderId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_targetHead.GetChild("loaIcon").asLoader.url = ResPathUtil.GetNpcHeadPath(_fightCfg.targetRes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_txtNpcScore.text = _fightCfg.targetName + " 0"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_txtMineScore.text = RoleDataManager.roleName + " 0"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnBack.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_levelCfg.type == ConstInstanceZonesType.Field) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_btnBack.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _isAutoPlay = _levelCfg.type == ConstInstanceZonesType.Field || FightDataManager.Instance.autoPlay; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnSpeedUp.visible = _isAutoPlay; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnSpeedUp.title = "x" + FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_LoaMask.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_comBar.target.width = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ScoreSystemData.Instance.SetEquipDicWithType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _partId = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _score = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _mainScore = ScoreSystemData.Instance.GetMainScore(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetMainScore = ScoreSystemData.Instance.GetTargetMainScore(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchBegin.Add(OnComAllCircleClickBegin); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchEnd.Add(AllCircleScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _roundTimes = ScoreSystemData.Instance.GetRoundTime(RoleType.MINE); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetRoundTimes = ScoreSystemData.Instance.GetRoundTime(RoleType.ENEMY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("zoya:  _mainScore:" + _mainScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("zoya:  _targetMainScore:" + _targetMainScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            CheckPartAllFightBegin(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /****************************************************************************************************************/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void SkillScoreStart(int roleType, double mainScore, double targetMainScore, int cardId, out int skillScore, out int targetSkillScore, out Dictionary<int, int> skillScoreDic, out bool showCard) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<PassivitySkillLvlCfg> vaildSkills = ScoreSystemData.Instance.GetValidSkills(_currentTime, _partId, roleType, _roundTimes, _targetRoundTimes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ScoreSystemData.Instance.GetPartItemSkillScore(vaildSkills, mainScore, targetMainScore, out skillScore, out targetSkillScore, out skillScoreDic); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            showCard = ScoreSystemData.Instance.IsShowCard(cardId, vaildSkills); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void ShowSkillCard(Dictionary<int, int> skillScoreDic, bool showCard) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (showCard) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ViewManager.Show<StorySkillView>(skillScoreDic); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                EventAgent.DispatchEvent(ConstMessage.SHOW_CARD_SKILL_END); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void CheckPartAllFightBegin() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _skillScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetSkillScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _currentTime = BeginTime.PART_ALL_FIGHT_BEGIN; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UpdateSkill0(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void CheckPartFightBeginSkill() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _skillScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetSkillScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _currentTime = BeginTime.PART_FIGHT_BEGIN; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UpdateSkill1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void CheckPartPerfectClickSkill() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _currentTime = BeginTime.PART_PREFACT_CLICK; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UpdateSkill1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void CheckPartFightEndSkill() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _skillScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetSkillScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _currentTime = BeginTime.PART_FIGHT_END; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UpdateSkill0(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void UpdateSkill0() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //技能分直接加到总分里 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SkillScoreStart(RoleType.ENEMY, _targetMainScore, _mainScore, _fightCfg.targetCardId, out int t_skillScoreSelf, out int t_skillScoreOther, out Dictionary<int, int> targetSkillScoreDic, out bool showTaregtCard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SkillScoreStart(RoleType.MINE, _mainScore, _targetMainScore, InstanceZonesDataManager.currentCardId, out int s_skillScoreSelf, out int s_skillScoreOther, out Dictionary<int, int> skillScoreDic, out bool showCard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (t_skillScoreSelf > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _targetScore += t_skillScoreSelf; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comTargetCard.m_txtScore.text = t_skillScoreSelf.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t1.timeScale = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t1.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (t_skillScoreOther < 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _score += t_skillScoreOther; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comDeduction.m_txtDeduction.text = t_skillScoreOther.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t2.timeScale = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t2.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (s_skillScoreSelf > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _score += s_skillScoreSelf; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (s_skillScoreOther < 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _targetScore += s_skillScoreOther; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetScore = Math.Max(0, _targetScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _score = Math.Max(0, _score); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ShowSkillCard(skillScoreDic, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void UpdateSkill1() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //技能分加到部件分里 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SkillScoreStart(RoleType.ENEMY, _targetMainScore, _mainScore, _fightCfg.targetCardId, out int t_skillScoreSelf, out int t_skillScoreOther, out Dictionary<int, int> targetSkillScoreDic, out bool showTaregtCard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SkillScoreStart(RoleType.MINE, _mainScore, _targetMainScore, InstanceZonesDataManager.currentCardId, out int s_skillScoreSelf, out int s_skillScoreOther, out Dictionary<int, int> skillScoreDic, out bool showCard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (t_skillScoreSelf > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _targetSkillScore += t_skillScoreSelf; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comTargetCard.m_txtScore.text = t_skillScoreSelf.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t1.timeScale = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t1.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (t_skillScoreOther < 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _skillScore += t_skillScoreOther; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comDeduction.m_txtDeduction.text = t_skillScoreOther.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t2.timeScale = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_t2.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (s_skillScoreSelf > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _skillScore += s_skillScoreSelf; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (s_skillScoreOther < 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _targetSkillScore += s_skillScoreOther; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ShowSkillCard(skillScoreDic, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void SkillScoreEnd() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            switch (_currentTime) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case BeginTime.PART_ALL_FIGHT_BEGIN: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    UpdateProgress(CheckPartFightBeginSkill); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case BeginTime.PART_FIGHT_BEGIN: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    PartScoreStart(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case BeginTime.PART_PREFACT_CLICK: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Timers.inst.Add(0.3f, 1, (object param) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        PartScoreResultStart(ClickType.PREFACT_CLICK); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case BeginTime.PART_FIGHT_END: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    UpdateProgress(OnePartScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void PartScoreStart() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.target.touchable = !_isAutoPlay; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Vector2 pos = (_ui.m_comClick.target.GetChild("grh_" + (_partId - 1)).asGraph).xy; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            float x = 0f; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            float y = 0f; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            x = pos.x; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            y = pos.y; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_loaGlass.SetXY(130, 130); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_loaGlass.url = string.Format("ui://Main/zd_bl_{0}", UnityEngine.Random.Range(0, 3)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.target.SetXY(x, y); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t0.timeScale = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_isAutoPlay) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comClick.m_comResult.m_t0.SetHook("perfect", PartScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comClick.m_comResult.m_t0.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comClick.m_comResult.m_t0.ClearHooks(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comClick.m_comResult.m_t0.Play(PartScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_txtPart.text = FightScoreCfgArray.Instance.GetCfg(_partId).name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void PartScoreEnd() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.target.touchable = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int clickType = ScoreSystemData.Instance.GetClickType(_ui.m_comClick.m_comResult.m_imgCircle.scale.x); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t0.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (clickType == ClickType.PREFACT_CLICK) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                CheckPartPerfectClickSkill(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                PartScoreResultStart(clickType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void PartScoreResultStart(int clickType) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("_partId:" + _partId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.target.touchable = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // ET.Log.Debug("zoya    _score:" + _score); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // ET.Log.Debug("zoya    _targetScore:" + _targetScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int _partScore = ScoreSystemData.Instance.GetPartScore(_partId, RoleType.MINE, clickType, _skillScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int _targetPartScore = ScoreSystemData.Instance.GetPartScore(_partId, RoleType.ENEMY, ClickType.PREFACT_CLICK, _targetSkillScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("zoya    _partScore:" + _partScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("zoya    _targetPartScore:" + _targetPartScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _score += _partScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _targetScore += _targetPartScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("zoya    score:" + _score); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("zoya    targetScore:" + _targetScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_c1.selectedIndex = clickType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            switch (clickType) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case ClickType.MISS_CLICK: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    _ui.m_comClick.m_comResult.m_txtCount0.text = _partScore.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case ClickType.GREAT_CLICK: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    _ui.m_comClick.m_comResult.m_txtCount1.text = _partScore.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case ClickType.PREFACT_CLICK: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    _prefectCount++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    _ui.m_comClick.m_comResult.m_txtCount2.text = _partScore.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            PartScoreResultEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void PartScoreResultEnd() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t1.timeScale = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t1.SetValue("start", 130, 130); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Vector2 posInB = _ui.m_proScore.target.TransformPoint(_ui.m_proScore.m_imgAni.xy, _ui.m_comClick.m_comResult.target); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t1.SetValue("end", posInB.x, posInB.y); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t1.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                UpdateProgress(CheckPartFightEndSkill); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void UpdateProgress(Action onFinish) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_txtMineScore.text = RoleDataManager.roleName + _score; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_txtNpcScore.text = _fightCfg.targetName + _targetScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            double proportion = _score + _targetScore == 0 ? 0 : _score / (_score + _targetScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            float width = (float)(proportion * _ui.m_proScore.target.width); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            width = width > _ui.m_proScore.m_comBar.target.initWidth ? _ui.m_proScore.m_comBar.target.initWidth : width; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.3f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    _ui.m_proScore.m_comBar.target.width = t.value.x; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }).OnComplete(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (onFinish != null) onFinish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void OnePartScoreEnd() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _partId++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_partId > FightScoreCfgArray.Instance.dataArray.Length) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (_prefectCount > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    _ui.m_comAllPerfect.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    AllCirclePlayStart();//完美八连击 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Timers.inst.Add(0.5f, 1, FightEnd);//评分结束 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Timers.inst.Add(ConstScoreSystem.REFRESH_CIRCLE_WITE_TIME / FightDataManager.Instance.fightSpeed, 1, (object param) => { CheckPartFightBeginSkill(); });//下个部分评分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void FightEnd(object param = null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_comRole.m_imgRole.SetSize(GRoot.inst.width, GRoot.inst.height); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_comRole.m_imgRole.texture = _nTexture; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_c1.selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_t0.Play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Timers.inst.Add(0.3f, 1, Skip); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void AllCirclePlayStart() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //登峰造极评分开始 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_t0.timeScale = FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_t0.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                AllCircleScoreEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void OnComAllCircleClickBegin() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_ui.m_comAllPerfect.m_imgCircle.visible == false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Timers.inst.Remove(ComAllCirclePressTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Timers.inst.Add(0.1f, 0, ComAllCirclePressTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void ComAllCirclePressTime(object param = null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //登峰造极长按时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _time += 0.1f; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void AllCircleScoreEnd() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Timers.inst.Remove(ComAllCirclePressTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_t0.Stop(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchBegin.Remove(OnComAllCircleClickBegin); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchEnd.Remove(AllCircleScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int allCircleScore = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_time >= ConstScoreSystem.LONG_PRESS_TIME / FightDataManager.Instance.fightSpeed) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                allCircleScore = ScoreSystemData.Instance.GetAllCircleAddScore(_mainScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_txtCount.text = allCircleScore.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _time = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _score += allCircleScore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_t1.Play(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    _prefectCount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    UpdateProgress(OnePartScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void OnBtnSpeedUp() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            FightDataManager.Instance.fightSpeed = FightDataManager.Instance.fightSpeed == 1 ? FightDataManager.Instance.maxFightSpeed : 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnSpeedUp.title = "x" + FightDataManager.Instance.fightSpeed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void OnBtnBackClick() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            InstanceZonesController.OnFinishStoryLevel(InstanceZonesDataManager.currentLevelCfgId, false, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.Hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override void OnHide() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            base.OnHide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // if (_sceneObject != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //     GameObject.Destroy(_sceneObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //     _sceneObject = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // _npcSkillDic.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Timers.inst.Remove(CheckGuide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private async void Skip(object param = null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            FightDataManager.Instance.totalScore = (int)Math.Round(_score); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            FightDataManager.Instance.npcTotalScore = (int)Math.Round(_targetScore); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            await InstanceZonesController.CheckStoryFightResult(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void Reset() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchBegin.Remove(OnComAllCircleClickBegin); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchEnd.Remove(AllCircleScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // Timers.inst.Remove(SkillScoreStart); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Timers.inst.Remove(Skip); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            GTween.Kill(_ui.m_proScore.m_comBar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_t1.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_t0.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_t1.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_t2.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_t3.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_comRole.m_t0.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.m_comRole.m_imgRole.alpha = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comRoleResult.target.SetScale(0, 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_t0.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.m_t1.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchBegin.Remove(OnComAllCircleClickBegin); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comAllPerfect.target.onTouchEnd.Remove(AllCircleScoreEnd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_txtNpcScore.text = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_txtMineScore.text = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_proScore.m_comBar.target.width = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_t1.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_t2.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t1.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comClick.m_comResult.m_t0.Stop(true, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void CheckGuide(object param) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                UpdateToCheckGuide(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Timers.inst.Remove(CheckGuide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override void UpdateToCheckGuide(object param) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!ViewManager.CheckIsTopView(this.viewCom)) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // if (playStop) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //     GuideController.TryGuide(_ui.m_comMineCircle.target, ConstGuideId.TARGET_FIGHT, 1, "这里可以观察双方的分数计算。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // GuideController.TryGuide(_ui.m_btnSkill0.target, ConstGuideId.TARGET_FIGHT, 2, "使用技能,可以增加胜出的几率哦,长按查看技能说明。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // GuideController.TryCompleteGuide(ConstGuideId.TARGET_FIGHT, 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |