コード例 #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();
    }
コード例 #2
0
ファイル: DeliveryTask.cs プロジェクト: arctignite/RTS
 void CompleteTask() //step 8
 {
     taskInitiated = false;
     currentTaskStep++;
     routine.SetTaskComplete();
 }