コード例 #1
0
    void Awake()
    {
        mm             = FindObjectOfType <MouseManager>();
        agent          = this.GetComponent <NavMeshAgent>();
        anim           = this.GetComponent <Animator>();
        woodHarvesting = this.GetComponent <WoodHarvesting>();

        state = State.Idle;

        CreateWorker();
    }
コード例 #2
0
    public bool workersPresent; // hacky fix -- we get a null reference exception if we don't have a worker selected



    void Awake()
    {
        uiManager      = FindObjectOfType <UIManager>();
        woodHarvesting = FindObjectOfType <WoodHarvesting>();
    }