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); }
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); }