Exemplo n.º 1
0
    private void Start()
    {
        agent    = GetComponent <Agent>();
        launcher = GetComponent <TreeLauncher>();
        grid     = FindObjectOfType <Grid> ();

        allTrees = GameObject.FindGameObjectsWithTag("Tree").ToList();
    }
Exemplo n.º 2
0
    private void Start()
    {
        anim         = GetComponent <Animator>();
        treeLauncher = GetComponent <TreeLauncher>();
        grid         = FindObjectOfType <Grid>();
        allTrees     = GameObject.FindGameObjectsWithTag("Tree").ToList();

        SetUpRange();
    }