a面修改
This commit is contained in:
@@ -79,7 +79,7 @@ namespace ChillConnect
|
||||
AppDispatcher.Instance.AddListener(AppMsg.LoginInit, OnLoadingComplete);
|
||||
|
||||
// DataMgr.InitPreferences();
|
||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetConfig);
|
||||
// NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetConfig);
|
||||
}
|
||||
private bool ispen = false;
|
||||
private void OnLoadingComplete(object param = null)
|
||||
@@ -91,7 +91,7 @@ namespace ChillConnect
|
||||
ispen = true;
|
||||
WebviewManager.DakaiACT();
|
||||
}
|
||||
TimerHelper.mEasy.AddTimer(2.0f, () =>
|
||||
TimerHelper.mEasy.AddTimer(0.1f, () =>
|
||||
{
|
||||
|
||||
AudioManager.Instance.InitDefaultButtonClickSound(AudioConst.gameclick);
|
||||
|
||||
@@ -70,6 +70,7 @@ namespace ChillConnect
|
||||
// Object.Destroy(splashCanvas);
|
||||
// }
|
||||
if (PlayerPrefs.GetInt("OpenAD", 1) == 0) closeMask();
|
||||
closeMask();
|
||||
|
||||
}
|
||||
|
||||
@@ -105,7 +106,7 @@ namespace ChillConnect
|
||||
GameDispatcher.Instance.AddListener(GameMsg.UpdateHotFixMax, OnUpdateHotFixMax);
|
||||
// GameDispatcher.Instance.AddListener(GameMsg.UpdateHotFixProgress, OnUpdateHotFixProgress);
|
||||
GameDispatcher.Instance.AddListener(GameMsg.Network_reconnection, Reconnection);
|
||||
GameDispatcher.Instance.AddListener(GameMsg.CloseMask, closeMask);
|
||||
// GameDispatcher.Instance.AddListener(GameMsg.CloseMask, closeMask);
|
||||
}
|
||||
|
||||
protected override void RemoveListener()
|
||||
@@ -113,7 +114,7 @@ namespace ChillConnect
|
||||
GameDispatcher.Instance.RemoveListener(GameMsg.UpdateHotFixMax, OnUpdateHotFixMax);
|
||||
// GameDispatcher.Instance.RemoveListener(GameMsg.UpdateHotFixProgress, OnUpdateHotFixProgress);
|
||||
GameDispatcher.Instance.RemoveListener(GameMsg.Network_reconnection, Reconnection);
|
||||
GameDispatcher.Instance.RemoveListener(GameMsg.CloseMask, closeMask);
|
||||
// GameDispatcher.Instance.RemoveListener(GameMsg.CloseMask, closeMask);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -73,6 +73,11 @@ namespace ChillConnect
|
||||
//刘海屏
|
||||
ui.gold.y += Screen.safeArea.y;
|
||||
}
|
||||
if (!GameHelper.IsGiftSwitch())
|
||||
{
|
||||
ConfigSystem.GetConfig<PaidgiftModel>().DataList[0].Paid_price = 1;
|
||||
ConfigSystem.GetConfig<PaidgiftModel>().DataList[1].Paid_price = 1;
|
||||
}
|
||||
|
||||
bool need_scroll = false;
|
||||
|
||||
@@ -87,11 +92,11 @@ namespace ChillConnect
|
||||
if (need_scroll) ui.panel_parent.scrollPane.ScrollDown(300, false);
|
||||
if (need_scroll)
|
||||
{
|
||||
TrackKit.SendEvent(GameHelper.getTrackEvenName(),Property.RemoveAdShow);
|
||||
TrackKit.SendEvent(GameHelper.getTrackEvenName(), Property.RemoveAdShow);
|
||||
}
|
||||
else
|
||||
{
|
||||
TrackKit.SendEvent(GameHelper.getTrackEvenName(),Property.FirstPackShow);
|
||||
TrackKit.SendEvent(GameHelper.getTrackEvenName(), Property.FirstPackShow);
|
||||
}
|
||||
|
||||
ui.gold.GetChild("text_gold").text = GameHelper.Get101Str(GameHelper.GetGoldNumber());
|
||||
@@ -200,7 +205,7 @@ namespace ChillConnect
|
||||
|
||||
|
||||
SaveData.GetSaveObject().is_get_packreward = true;
|
||||
Debug.Log(SaveData.GetSaveObject().is_get_packreward+"////////////////////////");
|
||||
Debug.Log(SaveData.GetSaveObject().is_get_packreward + "////////////////////////");
|
||||
InitView();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -271,6 +271,11 @@ namespace ChillConnect
|
||||
|
||||
void initList()
|
||||
{
|
||||
if (!GameHelper.IsGiftSwitch())
|
||||
{
|
||||
list = list.GetRange(0, 2);
|
||||
list[1].Payment_amount = 1;
|
||||
}
|
||||
ui.gold_list.itemRenderer = setRemaintime;
|
||||
ui.gold_list.numItems = list.Count > 6 ? 6 : list.Count;
|
||||
|
||||
@@ -337,12 +342,14 @@ namespace ChillConnect
|
||||
if (myAds >= needAds)
|
||||
{
|
||||
item.btn_buy.can_buy.selectedIndex = 0;
|
||||
item.btn_buy.btn_text.text = needAds + "ADs";
|
||||
// item.btn_buy.btn_text.text = needAds + "ADs";
|
||||
item.btn_buy.btn_text.text = "Claim";
|
||||
}
|
||||
else
|
||||
{
|
||||
item.btn_buy.can_buy.selectedIndex = 1;
|
||||
item.btn_buy.btn_text.text = needAds + "ADs";
|
||||
item.btn_buy.btn_text.text = "Watch " + myAds + "/" + needAds + " AD";
|
||||
// item.btn_buy.btn_text.text = + "ADs";
|
||||
}
|
||||
|
||||
item.text_ads.SetVar("ads", needAds.ToString()).FlushVars();
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace ChillConnect
|
||||
DateTimeManager.Instance.SetServerCurrTimestamp(loginData.LoginTime);
|
||||
|
||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetPlayData);
|
||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetConfig);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user