From 18909909feb43a28fd574fc92f47d2f3d6f5ebc3 Mon Sep 17 00:00:00 2001 From: NTG_Lenovo Date: Mon, 28 Oct 2024 13:09:10 +0900 Subject: [PATCH] =?UTF-8?q?0.3.2.6=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/02.Scripts/Tycoon/LiquidController.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Assets/02.Scripts/Tycoon/LiquidController.cs b/Assets/02.Scripts/Tycoon/LiquidController.cs index 9df0df020..9f051221f 100644 --- a/Assets/02.Scripts/Tycoon/LiquidController.cs +++ b/Assets/02.Scripts/Tycoon/LiquidController.cs @@ -169,22 +169,22 @@ namespace BlueWater SetCurrentAmount(0f); } - private void Update() + private void FixedUpdate() { if (_isPouring) { var currentBarrel = _currentBarrel; - - // 술이 완성되었을 때 - if (_instanceLiquidCount >= _maxLiquidCount) - { - StartCoroutine(nameof(CompleteCocktail)); - return; - } - _elapsedTime += Time.deltaTime; - if (_elapsedTime >= _timeInterval) + + while (_elapsedTime >= _timeInterval) { + // 술이 완성되었을 때 + if (_instanceLiquidCount >= _maxLiquidCount) + { + StartCoroutine(nameof(CompleteCocktail)); + return; + } + switch (currentBarrel.GetLiquidData().Type) { case LiquidType.None: