|
@@ -91,26 +91,29 @@ namespace GFGGame
|
|
|
await StorageSProxy.ReqGetClientValues();
|
|
|
|
|
|
int skipGuide = StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_SKIP_GUIDE);
|
|
|
- if (skipGuide > 0)
|
|
|
+
|
|
|
+ if (skipGuide < 0)
|
|
|
{
|
|
|
- if (skipGuide == 1) GameGlobal.skipGuide = true;
|
|
|
- EnterGame();
|
|
|
+ Alert.Show("是否跳过引导?如果您是第一次体验,建议不要跳过引导!")
|
|
|
+ .SetLeftButton(true, "不用", (obj) =>
|
|
|
+ {
|
|
|
+ EnterGame();
|
|
|
+ StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_SKIP_GUIDE, 0).Coroutine();
|
|
|
+ })
|
|
|
+ .SetRightButton(true, "跳过", (obj) =>
|
|
|
+ {
|
|
|
+ GameGlobal.skipGuide = true;
|
|
|
+ EnterGame();
|
|
|
+ StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_SKIP_GUIDE, 1).Coroutine();
|
|
|
+ });
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- Alert.Show("是否跳过引导?如果您是第一次体验,建议不要跳过引导!")
|
|
|
- .SetLeftButton(true, "不用", (obj) =>
|
|
|
- {
|
|
|
- EnterGame();
|
|
|
- StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_SKIP_GUIDE, 2).Coroutine();
|
|
|
- })
|
|
|
- .SetRightButton(true, "跳过", (obj) =>
|
|
|
- {
|
|
|
- GameGlobal.skipGuide = true;
|
|
|
- EnterGame();
|
|
|
- StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_SKIP_GUIDE, 1).Coroutine();
|
|
|
- });
|
|
|
+ if (skipGuide == 1) GameGlobal.skipGuide = true;
|
|
|
+ EnterGame();
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public static void QuitToLoginView(bool logout)
|
|
@@ -185,6 +188,9 @@ namespace GFGGame
|
|
|
SuitFosterProxy.SendGetSuitInfos().Coroutine();
|
|
|
MainStorySProxy.GetStoryInfos().Coroutine();
|
|
|
|
|
|
+ EquipDataCache.cacher.autoPlay = StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_AUTO_PLAY) <= 0 ? false : true;
|
|
|
+ EquipDataCache.cacher.fightSpeed = StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_AUTO_PLAY_SPEED) <= 1 ? 1 : StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_AUTO_PLAY_SPEED);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public static void PrepareUpdateTreasure()
|