示例#1
0
    private IEnumerator ChangeGlossTimer(Ingredient ingredient)
    {
        _animator.SetBool(_animatorUsingHash, true);

        while (_stationInUse)
        {
            yield return(new WaitForSeconds(0.05f));

            ingredient.AddGloss(_glossChangePerSecond * 0.05f);
        }

        _animator.SetBool(_animatorUsingHash, false);
    }