|
@@ -240,7 +240,8 @@ namespace GFGGame
|
|
|
}
|
|
|
private void UpdateAddUI(RoleSkillCfg cfg, int role)
|
|
|
{
|
|
|
- UI_ComRoleSkillScore comRoleSkillScore = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillMineAdd : _ui.m_ComRoleSkillNpcAdd;
|
|
|
+ UI_ComRoleSkill comRoleSkillScore = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillMineAdd : _ui.m_ComRoleSkillNpcAdd;
|
|
|
+ comRoleSkillScore.target.visible = true;
|
|
|
int score = 0;
|
|
|
if (role == SkillDataManager.MINE)
|
|
|
{
|
|
@@ -252,9 +253,12 @@ namespace GFGGame
|
|
|
score = (int)_targetMainScore * cfg.value / 100;
|
|
|
_targetScore += score;
|
|
|
}
|
|
|
- comRoleSkillScore.m_comRoleSkill.m_c1.selectedIndex = 0;
|
|
|
- comRoleSkillScore.m_comRoleSkill.m_txtScore.SetVar("count", score.ToString()).FlushVars();
|
|
|
- comRoleSkillScore.m_t0.Play();
|
|
|
+ // comRoleSkillScore.m_comRoleSkill.m_c1.selectedIndex = 0;
|
|
|
+ comRoleSkillScore.m_txtScore.SetVar("count", score.ToString()).FlushVars();
|
|
|
+ comRoleSkillScore.m_t0.Play(() =>
|
|
|
+ {
|
|
|
+ comRoleSkillScore.target.visible = false;
|
|
|
+ });
|
|
|
|
|
|
UpdateProgressBar();
|
|
|
|
|
@@ -277,8 +281,9 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- UI_ComRoleSkillScore comRoleSkillScore = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillNpcMinus : _ui.m_ComRoleSkillMineMinus;
|
|
|
-
|
|
|
+ UI_ComRoleSkill1 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)
|
|
|
{
|
|
@@ -292,9 +297,24 @@ namespace GFGGame
|
|
|
_score -= score;
|
|
|
}
|
|
|
|
|
|
- comRoleSkillScore.m_comRoleSkill.m_c1.selectedIndex = 1;
|
|
|
- comRoleSkillScore.m_comRoleSkill.m_txtScore.SetVar("count", score.ToString()).FlushVars();
|
|
|
- comRoleSkillScore.m_t1.Play();
|
|
|
+ // comRoleSkillScore.m_comRoleSkill.m_c1.selectedIndex = 1;
|
|
|
+ comRoleSkillScore.m_txtScore.SetVar("count", score.ToString()).FlushVars();
|
|
|
+ if (role == SkillDataManager.MINE)
|
|
|
+ {
|
|
|
+
|
|
|
+ comRoleSkillScore.m_t0.Play(() =>
|
|
|
+ {
|
|
|
+ comRoleSkillScore.target.visible = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ comRoleSkillScore.m_t1.Play(() =>
|
|
|
+ {
|
|
|
+ comRoleSkillScore.target.visible = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
UpdateProgressBar();
|
|
|
|
|
|
});
|
|
@@ -362,10 +382,10 @@ namespace GFGGame
|
|
|
_ui.m_ComShieldNpc.target.visible = false;
|
|
|
_ui.m_ComShieldMine.target.visible = false;
|
|
|
|
|
|
- _ui.m_ComRoleSkillMineAdd.m_comRoleSkill.target.visible = false;
|
|
|
- _ui.m_ComRoleSkillMineMinus.m_comRoleSkill.target.visible = false;
|
|
|
- _ui.m_ComRoleSkillNpcAdd.m_comRoleSkill.target.visible = false;
|
|
|
- _ui.m_ComRoleSkillNpcMinus.m_comRoleSkill.target.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;
|
|
|
|
|
|
RoleSkillCfg[] roleSkillCfgs = RoleSkillCfgArray.Instance.dataArray;
|
|
|
for (int i = 0; i < roleSkillCfgs.Length; i++)
|