0.3.2.6 업데이트

This commit is contained in:
NTG_Lenovo 2024-10-28 13:09:10 +09:00
parent 87f6ddf1ea
commit 18909909fe

View File

@ -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: