fix:1、添加主题更换。2、修复bug
This commit is contained in:
@@ -79,37 +79,14 @@ namespace ChillConnect
|
||||
{
|
||||
lang = "en";
|
||||
}
|
||||
Debug.Log(ConfigSystem.GetConfig<CommonModel>().ExchangeModeToggle + "//////////////////////");
|
||||
|
||||
//初始化商品
|
||||
// PurchasingManager.Instance.InitProduct();
|
||||
var appleData = new ApplePayData
|
||||
{
|
||||
sku = "",
|
||||
amount = 0,
|
||||
currency = "USD",
|
||||
shopName = "",
|
||||
type = ""
|
||||
};
|
||||
// ApplePayManager.Instance.InitProduct(ConfigSystem.GetConfig<ApplePayModel2>().DataList,
|
||||
// ConfigManager.GameConfig.packageName, PurchasingManager.ApplePaySuccessCallback(appleData));
|
||||
|
||||
Debug.Log(JsonConvert.SerializeObject(ConfigSystem.GetConfig<ApplePayModel>().DataList));
|
||||
UIManager.Instance.SetSwitchLanguage(lang);
|
||||
// UIManager.Instance.SetSwitchLanguage(lang);
|
||||
|
||||
EnterHall(true);
|
||||
isGameStart = true;
|
||||
|
||||
TrackKit.TrackLoginFunnel(LoginFunnelEventType.EnterHall);
|
||||
// Debug.Log("?????????????????" + PurchasingManager.GetPaySku(PayType.pack_reward));
|
||||
// Debug.Log(JsonConvert.SerializeObject(ConfigSystem.GetConfig<ApplePayModel>().DataList));
|
||||
// bool enterGame = CommonHelper.GetBoolByChance(ConfigSystem.GetConfig<CommonModel>().roomrate / 100f);
|
||||
// if (GameHelper.IsGiftSwitch() && enterGame)
|
||||
// {
|
||||
// EnterGame(enterGame);
|
||||
// }
|
||||
|
||||
// DOVirtual.DelayedCall(1f, PurchasingManager.StartPay);
|
||||
|
||||
}
|
||||
private void SetSoundVolume()
|
||||
@@ -130,50 +107,46 @@ namespace ChillConnect
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RewardAniUI_Close);
|
||||
AudioManager.Instance.StopBGM();
|
||||
AudioManager.Instance.PlayBGM(AudioConst.MainBg);
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ArrowGameUI_Open);
|
||||
|
||||
if (GameHelper.IsGiftSwitch() && (obj != null))
|
||||
{
|
||||
int h5rate = GameHelper.GetCommonModel().loginhallrate;
|
||||
int roomrate = GameHelper.GetCommonModel().roomrate;
|
||||
// if (UnityEngine.Random.Range(1, 100) < h5rate) {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open);
|
||||
// } else
|
||||
if (UnityEngine.Random.Range(1, 100) < roomrate)
|
||||
{//进入玩法
|
||||
|
||||
GameHelper.is_first_login = false;
|
||||
// OnClickPlay();
|
||||
if (!SaveData.GetSaveObject().have_slot && (DateTime.Now.Day != PlayerPrefs.GetInt("off_new", 0)))
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AddviewnewUI_Open);
|
||||
PlayerPrefs.SetInt("off_new", DateTime.Now.Day);
|
||||
}
|
||||
if (!SaveData.GetSaveObject().have_slot && UnityEngine.Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().BonusInside)
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AddviewnewUI_Open);
|
||||
}
|
||||
else
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RainPlayUI_Open, true);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GameHelper.is_first_login = false;
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open, true);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
GameHelper.is_first_login = false;
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
}
|
||||
// if (GameHelper.IsGiftSwitch() && (obj != null))
|
||||
// {
|
||||
// int h5rate = GameHelper.GetCommonModel().loginhallrate;
|
||||
// int roomrate = GameHelper.GetCommonModel().roomrate;
|
||||
// // if (UnityEngine.Random.Range(1, 100) < h5rate) {
|
||||
// // UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open);
|
||||
// // } else
|
||||
// if (UnityEngine.Random.Range(1, 100) < roomrate)
|
||||
// {//进入玩法
|
||||
//
|
||||
// GameHelper.is_first_login = false;
|
||||
// if (!SaveData.GetSaveObject().have_slot && (DateTime.Now.Day != PlayerPrefs.GetInt("off_new", 0)))
|
||||
// {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
// PlayerPrefs.SetInt("off_new", DateTime.Now.Day);
|
||||
// }
|
||||
// if (!SaveData.GetSaveObject().have_slot && UnityEngine.Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().BonusInside)
|
||||
// {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RainPlayUI_Open, true);
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// GameHelper.is_first_login = false;
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open, true);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// GameHelper.is_first_login = false;
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
// }
|
||||
|
||||
|
||||
if (GameHelper.IsGiftSwitch()) UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BroadcastUI_Open);
|
||||
|
||||
Reference in New Issue
Block a user