|
@@ -76,6 +76,7 @@ namespace GFGGame
|
|
|
if (curTime >= endTime)
|
|
|
{
|
|
|
Hide();
|
|
|
+ EventAgent.DispatchEvent(ConstMessage.TRAVEL_STATE_CHANGE);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -93,7 +94,7 @@ namespace GFGGame
|
|
|
string[] strArr = timeStr.Split(':');
|
|
|
|
|
|
int num = int.Parse(strArr[0]) + (int.Parse(strArr[1]) > 0 ? 1 : 0);
|
|
|
- _ui.m_numFinishSpend.text = num.ToString();
|
|
|
+ _ui.m_numFinishSpend.text = num.ToString();
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnFinish()
|
|
@@ -107,7 +108,7 @@ namespace GFGGame
|
|
|
Count = spendNum
|
|
|
};
|
|
|
list.Add(item);
|
|
|
- TravelSProxy.ReqTravelSpeedUp(1, list);
|
|
|
+ SpeedUp(1, list);
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnSpeedUp()
|
|
@@ -121,7 +122,13 @@ namespace GFGGame
|
|
|
Count = spendNum
|
|
|
};
|
|
|
list.Add(item);
|
|
|
- TravelSProxy.ReqTravelSpeedUp(2, list);
|
|
|
+ SpeedUp(2, list);
|
|
|
+ }
|
|
|
+
|
|
|
+ private async void SpeedUp(int type, List<ItemInfoProto> list)
|
|
|
+ {
|
|
|
+ await TravelSProxy.ReqTravelSpeedUp(type, list);
|
|
|
+ UpdateTime(null);
|
|
|
}
|
|
|
}
|
|
|
}
|