From f1d0e27e5eac50cb0bfb89f9951848a10c910a29 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 14 Feb 2022 17:51:06 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E5=87=A6=E7=90=86?= =?UTF-8?q?=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/CornField/Scripts/CornField.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/CornField/Scripts/CornField.cs b/popcorn/Assets/MyGame/Scenes/CornField/Scripts/CornField.cs index 79929c56..f2450356 100644 --- a/popcorn/Assets/MyGame/Scenes/CornField/Scripts/CornField.cs +++ b/popcorn/Assets/MyGame/Scenes/CornField/Scripts/CornField.cs @@ -169,7 +169,6 @@ public class CornField : MonoBehaviour SetCornField(true); - var push = new Subject().AddTo(this); // 既存の株は成長済みにする foreach (var plantLine in plantLines) { @@ -182,23 +181,12 @@ public class CornField : MonoBehaviour var progressData = gameData.SeedlingDataList.First(data => data.type == plantLineData.Type).Seedlings[i]; progressData.FirstTime = progressData.FirstTime.AddSeconds(-maxPeriod); plantLine.Seedlings[i].PromoteGrowth(progressData.FirstTime); - // エフェクト出すだけ - // push.Subscribe(unit => - // { - // if (Random.value < .5f) - // { - // seedling.PromoteGrowth(progressData.FirstTime); - // } - // }).AddTo(this); } } Observable.Timer(TimeSpan.FromSeconds(1f), TimeSpan.FromSeconds(1f)) .Select(x => (int)(fertilizerDuration - x)) .TakeWhile(x => x > 0) - .Subscribe(x => - { - push.OnNext(Unit.Default); - }, () => + .Subscribe(x => { }, () => { SoundManager.Instance.PlayBGM("bgm_Main"); brotherFertilizerAnimation.EndAnimation();