From 642eab3e9d269242d226873d15861fd18be431a9 Mon Sep 17 00:00:00 2001 From: eugene-hong <58686228+eugene-doobu@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:31:11 +0900 Subject: [PATCH 1/2] update bundle version to 260.0.4 (276) --- nekoyume/ProjectSettings/ProjectSettings.asset | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nekoyume/ProjectSettings/ProjectSettings.asset b/nekoyume/ProjectSettings/ProjectSettings.asset index d0497c2e8a..4196236f85 100644 --- a/nekoyume/ProjectSettings/ProjectSettings.asset +++ b/nekoyume/ProjectSettings/ProjectSettings.asset @@ -139,7 +139,7 @@ PlayerSettings: 16:10: 0 16:9: 1 Others: 0 - bundleVersion: 260.0.3 + bundleVersion: 260.0.4 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0 @@ -168,7 +168,7 @@ PlayerSettings: iPhone: 0 tvOS: 0 overrideDefaultApplicationIdentifier: 1 - AndroidBundleVersionCode: 275 + AndroidBundleVersionCode: 276 AndroidMinSdkVersion: 24 AndroidTargetSdkVersion: 34 AndroidPreferredInstallLocation: 2 From 38dd69960e88b9cd85f519db7ec81f93683326ff Mon Sep 17 00:00:00 2001 From: eugene-hong <58686228+eugene-doobu@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:49:12 +0900 Subject: [PATCH 2/2] add synthesis tutorial for old user --- .../Assets/_Scripts/UI/Widget/CombinationMain.cs | 1 + .../_Scripts/UI/Widget/Workshop/Synthesis.cs | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/nekoyume/Assets/_Scripts/UI/Widget/CombinationMain.cs b/nekoyume/Assets/_Scripts/UI/Widget/CombinationMain.cs index b82cf5bc21..4290b7cb5f 100644 --- a/nekoyume/Assets/_Scripts/UI/Widget/CombinationMain.cs +++ b/nekoyume/Assets/_Scripts/UI/Widget/CombinationMain.cs @@ -223,6 +223,7 @@ public void TutorialActionClickCombinationRuneButton() public void TutorialActionSynthesisShow() { synthesisButton.onClick?.Invoke(); + Find().CheckTutorial(); } [UsedImplicitly] diff --git a/nekoyume/Assets/_Scripts/UI/Widget/Workshop/Synthesis.cs b/nekoyume/Assets/_Scripts/UI/Widget/Workshop/Synthesis.cs index f87820e924..8336d24407 100644 --- a/nekoyume/Assets/_Scripts/UI/Widget/Workshop/Synthesis.cs +++ b/nekoyume/Assets/_Scripts/UI/Widget/Workshop/Synthesis.cs @@ -29,6 +29,8 @@ public class Synthesis : Widget private const ItemSubType DefaultItemSubType = ItemSubType.Aura; + private static string TutorialCheckKey => $"Tutorial_Check_Synthesis_{Game.Game.instance.States.CurrentAvatarKey}"; + private readonly List _activeDisposables = new(); private readonly ToggleGroup _toggleGroup = new(); @@ -135,6 +137,13 @@ protected override void OnDisable() public override void Show(bool ignoreShowAnimation = false) { + if (PlayerPrefs.GetInt(TutorialCheckKey, 0) == 0) + { + // Play Tutorial - for old user + Game.Game.instance.Stage.TutorialController.Play(1510002); + PlayerPrefs.SetInt(TutorialCheckKey, 1); + } + base.Show(ignoreShowAnimation); if (CurrentItemSubType == DefaultItemSubType) @@ -343,5 +352,10 @@ public static bool IsStrong(ItemBase itemBase) } #endregion Utils + + public void CheckTutorial() + { + PlayerPrefs.SetInt(TutorialCheckKey, 1); + } } }