From 7f6e9537e06da8cdd123b55b60bc7de1a0277aa1 Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 15 Apr 2022 10:30:29 +0900 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8B=95=E8=AA=BF=E7=90=86=E3=83=87?= =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs index e7a0781a..04ee28ec 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs @@ -252,11 +252,15 @@ public class DebugOptionManager : MonoBehaviour .DistinctUntilChanged() .Subscribe(x => { + gameData.AutoCookUsesCount = 0; gameData.AutoCookLevel = autoCookList[x].level; // level1ならチュートリアル復活 if (gameData.AutoCookLevel == 1) { gameData.FinishedFlags &= ~TutorialFlag.AutoCook; + gameData.AutoCookFinishTime = DateTime.UtcNow.ToBinary(); + gameData.AutoCookProducts = Array.Empty(); + gameData.AutoCookUsesCount = 0; } }).AddTo(this);