예제 #1
0
    void Start()
    {
        navMeshAgent = GetComponent <NavMeshAgent>();
        if (activeAgroZone)
        {
            agroZone = GetComponentInChildren <E_AgroZone>();
        }

        if (points.Length > 0)
        {
            coroutine = StartCoroutine(StartMove());
        }
    }
예제 #2
0
 void Start()
 {
     agroZone = transform.parent.GetComponentInChildren <E_AgroZone>();
 }