|
@@ -101,19 +101,18 @@ namespace Fort23.Mono
|
|
|
|
|
|
|
|
Btn_TuPo.onClick.AddListener(async () =>
|
|
Btn_TuPo.onClick.AddListener(async () =>
|
|
|
{
|
|
{
|
|
|
- if (PlayerManager.Instance.myHero.powerUpConfig.jingjie1 == heroInfo.powerUpConfig.jingjie1)
|
|
|
|
|
- {
|
|
|
|
|
- int currentMiao = (int)((TimeHelper.ClientNow() - PlayerManager.Instance.myHero.heroData.upTime) /
|
|
|
|
|
- 1000);
|
|
|
|
|
-
|
|
|
|
|
- float allexp = currentMiao * PlayerManager.Instance.myHero.powerUpConfig.AutoXiuwei;
|
|
|
|
|
- if (PlayerManager.Instance.myHero.heroData.exp + allexp <
|
|
|
|
|
- PlayerManager.Instance.myHero.powerUpConfig.levelUpExp)
|
|
|
|
|
- {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ int currentMiao = (int)((TimeHelper.ClientNow() - PlayerManager.Instance.myHero.heroData.upTime) /
|
|
|
|
|
+ 1000);
|
|
|
|
|
|
|
|
|
|
+ float allexp = currentMiao * PlayerManager.Instance.myHero.powerUpConfig.AutoXiuwei;
|
|
|
|
|
+ if (PlayerManager.Instance.myHero.heroData.exp + allexp <
|
|
|
|
|
+ PlayerManager.Instance.myHero.powerUpConfig.levelUpExp)
|
|
|
|
|
+ {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ if (PlayerManager.Instance.myHero.powerUpConfig.jingjie1 == heroInfo.powerUpConfig.jingjie1)
|
|
|
|
|
+ {
|
|
|
//小突破
|
|
//小突破
|
|
|
if (PlayerManager.Instance.myHero.powerUpConfig.jingjie2 == heroInfo.powerUpConfig.jingjie2)
|
|
if (PlayerManager.Instance.myHero.powerUpConfig.jingjie2 == heroInfo.powerUpConfig.jingjie2)
|
|
|
{
|
|
{
|