Example #1
0
    private IEnumerator Mangeage()
    {
        while (transform.localScale.sqrMagnitude > 0.25f)
        {
            transform.localScale -= Vector3.one * DownScaleSpeed * Time.deltaTime;
            yield return(null);
        }

        Partie.Mange(Ingredient);
        GameObject.Destroy(gameObject);
    }