void Start() { kunaiScript = GetComponent <KunaiEnemy>(); agent = GetComponent <NavMeshAgent>(); turret1 = GameObject.FindGameObjectWithTag("PT"); targetBase = GameObject.FindGameObjectWithTag("PlayerBase"); InvokeRepeating("UpdateTarget", 0f, 0.3f); }
void Start() { kunaiScript = GetComponent <KunaiEnemy>(); InvokeRepeating("UpdateTarget", 0f, 0.1f); }