|
@@ -34,6 +34,10 @@ namespace GFGGame
|
|
private GoWrapper _wrapper2;
|
|
private GoWrapper _wrapper2;
|
|
private GameObject _gameObject3;
|
|
private GameObject _gameObject3;
|
|
private GoWrapper _wrapper3;
|
|
private GoWrapper _wrapper3;
|
|
|
|
+ private GameObject _gameObject4;
|
|
|
|
+ private GoWrapper _wrapper4;
|
|
|
|
+ private GameObject _gameObject5;
|
|
|
|
+ private GoWrapper _wrapper5;
|
|
private Dictionary<int, RoleSkillCfg> _npcSkillDic;
|
|
private Dictionary<int, RoleSkillCfg> _npcSkillDic;
|
|
|
|
|
|
private bool playStop = false;
|
|
private bool playStop = false;
|
|
@@ -170,6 +174,9 @@ namespace GFGGame
|
|
string resPath1 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_ps");
|
|
string resPath1 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_ps");
|
|
SceneController.AddObjectToView(_gameObject1, _wrapper1, _ui.m_ComShieldMine.m_holder1, resPath1, out _gameObject1, out _wrapper1);
|
|
SceneController.AddObjectToView(_gameObject1, _wrapper1, _ui.m_ComShieldMine.m_holder1, resPath1, out _gameObject1, out _wrapper1);
|
|
SceneController.AddObjectToView(_gameObject3, _wrapper3, _ui.m_ComShieldNpc.m_holder1, resPath1, out _gameObject3, out _wrapper3);
|
|
SceneController.AddObjectToView(_gameObject3, _wrapper3, _ui.m_ComShieldNpc.m_holder1, resPath1, out _gameObject3, out _wrapper3);
|
|
|
|
+ string resPath2 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_tb_tg");
|
|
|
|
+ SceneController.AddObjectToView(_gameObject4, _wrapper4, _ui.m_ComRoleSkillMineAdd.m_holder, resPath2, out _gameObject4, out _wrapper4, 70);
|
|
|
|
+ SceneController.AddObjectToView(_gameObject5, _wrapper5, _ui.m_ComRoleSkillNpcAdd.m_holder, resPath2, out _gameObject5, out _wrapper5, 70);
|
|
_ui.m_ComShieldMine.m_holder.visible = false;
|
|
_ui.m_ComShieldMine.m_holder.visible = false;
|
|
_ui.m_ComShieldMine.m_holder1.visible = false;
|
|
_ui.m_ComShieldMine.m_holder1.visible = false;
|
|
_ui.m_ComShieldNpc.m_holder.visible = false;
|
|
_ui.m_ComShieldNpc.m_holder.visible = false;
|
|
@@ -225,8 +232,6 @@ namespace GFGGame
|
|
_ui.m_proScore.m_comBar.m_imgAni.visible = true;
|
|
_ui.m_proScore.m_comBar.m_imgAni.visible = true;
|
|
|
|
|
|
double proportion = _score / (_score + _targetScore);
|
|
double proportion = _score / (_score + _targetScore);
|
|
- // double value = proportion * _ui.m_proScore.target.max;
|
|
|
|
- // _ui.m_proScore.target.TweenValue(value, 0.5f);
|
|
|
|
float width = (float)(proportion * _ui.m_proScore.target.width);
|
|
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) =>
|
|
GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.5f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) =>
|
|
@@ -234,11 +239,7 @@ namespace GFGGame
|
|
_ui.m_proScore.m_comBar.target.width = t.value.x;
|
|
_ui.m_proScore.m_comBar.target.width = t.value.x;
|
|
}); ;
|
|
}); ;
|
|
|
|
|
|
- // if (twener != null)
|
|
|
|
- // {
|
|
|
|
- // twener.Kill();
|
|
|
|
- // }
|
|
|
|
- // _ui.m_proScore.m_imgAni.x = (float)(proportion * _ui.m_proScore.target.width);// SetPosition(proportion* _ui.m_proScore.target.width,);
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
//释放NPC技能
|
|
//释放NPC技能
|
|
private void ReleaseNpcSkill()
|
|
private void ReleaseNpcSkill()
|