Beispiel #1
0
    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();
    }
Beispiel #2
0
 void CompleteTask() //step 8
 {
     taskInitiated = false;
     currentTaskStep++;
     routine.SetTaskComplete();
 }