Example #1
0
    public static IEnumerator ChopAndReturn(Logger l)
    {
        yield return(ForestController.Instance.StartCoroutine(VolunteerActions.WaitAndReturn(l, 3)));

        ForestGrid.map.SetTile(l.choppingTile, ForestGrid.stump);
        ForestGrid.RemoveTree(l.choppingTile);
    }
Example #2
0
    static IEnumerator ClearAndReturn(Volunteer v, Vector3Int tilePos)
    {
        yield return(null);        // ForestController.Instance.StartCoroutine(VolunteerActions.WaitAndReturn(v, 3));

        ForestGrid.ClearHover(tilePos);
        ForestGrid.map.SetTile(tilePos, ForestGrid.empty);
        ForestGrid.RemoveTree(tilePos);
    }
Example #3
0
    public static IEnumerator TreeGrow(Volunteer v, Vector3Int tilePos)
    {
        ForestGrid.ClearHover(tilePos);
        yield return(new WaitForSeconds(1));

        //v.anim.ResetTrigger("Shoveling");
        //v.anim.SetTrigger("Walking");
        //v.AssignTarget(v.origin);
        ForestGrid.currentTrees.Add(new ForestTree(tilePos));
        // if (i == 2)
        //  ForestController.Instance.activeTrees.Add(tilePos);
    }