public void StopConstruction() { //call from construction whenever out of resources or finished constructionInProgress = false; anim.Idle(); taskInitiated = false; try { task.getRequester().GetComponent <Construction>().RemoveBuilder(gameObject); } catch { Debug.Log("couldn't remove builder from construction"); } currentTaskStep++; routine.SetTaskComplete(); }
void CompleteTask() //step 8 { taskInitiated = false; currentTaskStep++; routine.SetTaskComplete(); }