Example #1
0
    IEnumerator Dig()
    {
        for (int i = 0; i < 4; i++)
        {
            anim.Play("Interact");
            gc.PlayShovel();
            yield return(new WaitForSeconds(1));

            hole.Dig();
        }
        pathIndex++;
        anim.Play("Walk");
    }