Пример #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>();
 }