h5sdk提交
This commit is contained in:
@@ -46,9 +46,8 @@ namespace BingoBrain
|
||||
bg.transform.SetParent(BingoCell.root, false);
|
||||
CameraBoardk.Instance.mainCamera.gameObject.AddComponent<PhysicsRaycaster>();
|
||||
// Debug.Log("??????????????????????????");
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoHallUI_Open);
|
||||
|
||||
|
||||
// UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoHallUI_Open);
|
||||
//UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoHalldUI_Open);
|
||||
|
||||
InitSystems();
|
||||
ShungTik.InitRoot(BingoCell.root);
|
||||
|
||||
@@ -194,11 +194,11 @@ namespace BingoBrain
|
||||
fx_main_ad,
|
||||
fx_broad,
|
||||
fx_tips,
|
||||
fx_savepot_icon,
|
||||
fx_savepot,
|
||||
fx_three_gift,
|
||||
fx_three_gift,
|
||||
fx_title_effect,
|
||||
fx_wheel,
|
||||
fx_saving,
|
||||
fx_petty_reward,
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace BingoBrain
|
||||
_bingoDataSys?.RemoveChangeGiftSwitch(action);
|
||||
}
|
||||
|
||||
void FocusToGame (object obj = null)
|
||||
void FocusToGame(object obj = null)
|
||||
{
|
||||
// if(MaxPayManager.isPay)
|
||||
// {
|
||||
@@ -61,14 +61,15 @@ namespace BingoBrain
|
||||
newDate = newDate.AddSeconds(GameHelper.GetNowTime(true));
|
||||
// Debug.Log($"barry newdate==== {newDate}");
|
||||
var newDays = newDate.Day;
|
||||
if (last_time != newDays)
|
||||
{
|
||||
if (last_time != newDays)
|
||||
{
|
||||
var configs = GameHelper.GetCommonModel();
|
||||
// Debug.Log($"barry hall-----{configs != null}");
|
||||
if (configs != null) {
|
||||
if (configs != null)
|
||||
{
|
||||
WebviewManager.Instance.RefreshUrl();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InitSystem()
|
||||
@@ -99,20 +100,19 @@ namespace BingoBrain
|
||||
|
||||
private void EnterHall(object obj = null)
|
||||
{
|
||||
if (!GameHelper.IsGiftSwitch())
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.PlayBgUI_Close);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoStartUI_Close);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BottomUI_Open);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoHallUI_Open);
|
||||
// UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoHalldUI_Open);
|
||||
// UICtrlDispatcher.Instance.Dispatch(SkinInfo.SmailUI_Open);
|
||||
}
|
||||
else
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SheepPlayUI_Open);
|
||||
// if (!GameHelper.IsGiftSwitch())
|
||||
// {
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.PlayBgUI_Close);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoStartUI_Close);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BottomUI_Open);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoHallUI_Open);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BingoHalldUI_Open);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SheepPlayUI_Open);
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
GameHelper.PostFunnelLogin("enterHall");
|
||||
Audio.Instance.StopBGM();
|
||||
@@ -122,9 +122,13 @@ namespace BingoBrain
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BroadcastUI_Open);
|
||||
if (PlayerPrefs.GetInt("first_", 0) != 1)
|
||||
if (PlayerPrefs.GetInt("first_uid", 0) != GameHelper.GetLoginModel().uid)
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.FirstRewardUI_Open);
|
||||
// UICtrlDispatcher.Instance.Dispatch(SkinInfo.FirstRewardUI_Open);
|
||||
|
||||
GameHelper.AddGoldNumber(50);
|
||||
PlayerPrefs.SetInt("first_uid", (int)GameHelper.GetLoginModel().uid);
|
||||
PreferencesMgr.Instance.Currency102 = PreferencesMgr.Instance.Currency102 + ConfigSystem.GetConfig<CommonModel>().InitialNum;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,9 +20,11 @@ namespace BingoBrain
|
||||
|
||||
public static string domainUrl => IsReleaseMode ? DomainReleaseUrl : DomainDebugUrl;
|
||||
|
||||
public const string DomainDebugUrl = @"http://swhitegames.top/api/";
|
||||
public const string DomainDebugUrl = @"https://api.jsoncompare.online/";
|
||||
// public const string DomainDebugUrl = @"https://sdkapi.jsoncompare.online/api/";
|
||||
|
||||
public static readonly string DomainReleaseUrl = $"https://{DomainRelease}/api/";
|
||||
public const string DomainRelease = "bingoglassland.top";
|
||||
public const string DomainRelease = "bingotornado.top";
|
||||
|
||||
private ConfigSystem _ConfigSystem;
|
||||
private LoginSystem loginSystem;
|
||||
|
||||
@@ -69,12 +69,14 @@ namespace BingoBrain
|
||||
{
|
||||
preferences = loginModel.preferences ?? ReadServerPreferencesCache();
|
||||
}*/
|
||||
|
||||
preferences = ReadServerPreferencesCache();
|
||||
|
||||
if (preferences == null)
|
||||
preferences = ReadServerPreferencesCache();
|
||||
// Debug.Log(preferences.uid);
|
||||
// Debug.Log(GameHelper.GetLoginModel().uid);
|
||||
if (preferences == null || preferences.uid != GameHelper.GetLoginModel().uid)
|
||||
{
|
||||
preferences = new Preferences();
|
||||
preferences.uid = GameHelper.GetLoginModel().uid;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -162,7 +164,7 @@ namespace BingoBrain
|
||||
unsaveCount = 0;
|
||||
timeSave = GameHelper.GetNowTime();
|
||||
var data = Havva.ToObject<Dictionary<string, object>>(Havva.ToJson(preferences));
|
||||
// NetworkDispatcher.Instance.Dispatch(NetworkMsg.SavePlayData, data);zhushi
|
||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.SavePlayData, data);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user