|
@@ -18,7 +18,7 @@ namespace GFGGame
|
|
|
private SwipeGesture swipeGesture;
|
|
|
private const int swipeDistance = 100;
|
|
|
private bool isOpen = false;
|
|
|
- private int _actLuckyBoxId = 0;
|
|
|
+
|
|
|
private int _actLimitChargeId = 0;
|
|
|
private List<AdCfg> _adIds = new List<AdCfg>();
|
|
|
private Vector2 _startPos;
|
|
@@ -805,10 +805,10 @@ namespace GFGGame
|
|
|
_ui.m_btnActivityLuckyBox.target.visible = actLuckyBoxId > 0;
|
|
|
if (actLuckyBoxId > 0)
|
|
|
{
|
|
|
- if (actLuckyBoxId != _actLuckyBoxId)
|
|
|
+ if (actLuckyBoxId != ActivityDataManager.Instance.lastActLuckyBoxId)
|
|
|
{
|
|
|
ActivitySProxy.ReqGetTimeLimitLuckyBoxInfo(actLuckyBoxId).Coroutine();
|
|
|
- _actLuckyBoxId = actLuckyBoxId;
|
|
|
+ ActivityDataManager.Instance.lastActLuckyBoxId = actLuckyBoxId;
|
|
|
}
|
|
|
ActivityOpenCfg activityOpenCfg = ActivityOpenCfgArray.Instance.GetCfg(actLuckyBoxId);
|
|
|
_ui.m_btnActivityLuckyBox.target.title = activityOpenCfg.themeName;
|