|
@@ -46,6 +46,8 @@ namespace GFGGame
|
|
|
private GameObject _gameObject10;
|
|
|
private GameObject _gameObject11;
|
|
|
private GameObject _gameObject12;
|
|
|
+ private GameObject _gameObject13;
|
|
|
+ private GameObject _gameObject14;
|
|
|
private List<GameObject> _gameObjects = new List<GameObject>();
|
|
|
// private GoWrapper _wrapper5;
|
|
|
private Dictionary<int, RoleSkillCfg> _npcSkillDic;
|
|
@@ -204,6 +206,9 @@ namespace GFGGame
|
|
|
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_dfzj");
|
|
|
+ SceneController.AddObjectToView(_gameObject13, null, _ui.m_comMineCircle.m_holder, resPath8, out _gameObject13, out GoWrapper _wrapper13, 55);
|
|
|
+ SceneController.AddObjectToView(_gameObject14, null, _ui.m_comTargetCircle.m_holder, resPath8, out _gameObject14, out GoWrapper _wrapper14, 55);
|
|
|
|
|
|
|
|
|
string resPath3 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jn_an");
|
|
@@ -268,8 +273,10 @@ namespace GFGGame
|
|
|
//顶部评分进度条
|
|
|
private void UpdateProgressBar()
|
|
|
{
|
|
|
- _ui.m_proScore.m_txtMineScore.text = string.Format("总分{0}", (int)_score);// ((int)_score).ToString();
|
|
|
- _ui.m_proScore.m_txtNpcScore.text = string.Format("敌方{0}", (int)_targetScore); //((int)_targetScore).ToString();
|
|
|
+ StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
|
+ StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
|
+ _ui.m_proScore.m_txtNpcScore.text = string.Format("{0}{1}", fightCfg.targetName, (int)_targetScore); //((int)_targetScore).ToString();
|
|
|
+ _ui.m_proScore.m_txtMineScore.text = string.Format("{0}{1}", RoleDataManager.roleName, (int)_score);// ((int)_score).ToString();
|
|
|
_ui.m_proScore.m_comBar.m_imgAni.visible = true;
|
|
|
|
|
|
double proportion = _score / (_score + _targetScore);
|
|
@@ -445,12 +452,14 @@ namespace GFGGame
|
|
|
{
|
|
|
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_comRoleSkill.m_c1.selectedIndex = 1;
|