0.3.2.6 업데이트
This commit is contained in:
parent
87f6ddf1ea
commit
18909909fe
@ -169,12 +169,15 @@ namespace BlueWater
|
|||||||
SetCurrentAmount(0f);
|
SetCurrentAmount(0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void FixedUpdate()
|
||||||
{
|
{
|
||||||
if (_isPouring)
|
if (_isPouring)
|
||||||
{
|
{
|
||||||
var currentBarrel = _currentBarrel;
|
var currentBarrel = _currentBarrel;
|
||||||
|
_elapsedTime += Time.deltaTime;
|
||||||
|
|
||||||
|
while (_elapsedTime >= _timeInterval)
|
||||||
|
{
|
||||||
// 술이 완성되었을 때
|
// 술이 완성되었을 때
|
||||||
if (_instanceLiquidCount >= _maxLiquidCount)
|
if (_instanceLiquidCount >= _maxLiquidCount)
|
||||||
{
|
{
|
||||||
@ -182,9 +185,6 @@ namespace BlueWater
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_elapsedTime += Time.deltaTime;
|
|
||||||
if (_elapsedTime >= _timeInterval)
|
|
||||||
{
|
|
||||||
switch (currentBarrel.GetLiquidData().Type)
|
switch (currentBarrel.GetLiquidData().Type)
|
||||||
{
|
{
|
||||||
case LiquidType.None:
|
case LiquidType.None:
|
||||||
|
Loading…
Reference in New Issue
Block a user