//public ParticleSystem particula; void Start() { anim = GetComponent<Animator> (); if (Camera.main != null) { cam = Camera.main.transform; } character = GetComponent<movimientoEnemigo>(); //cusIK = GetComponentInChildren<customIK>(); weaponManager = GetComponent<managerDeArmasEnemigo> (); }
void Start () { decision = false; weponManger=GetComponent<managerDeArmasEnemigo> (); agent = GetComponentInChildren<NavMeshAgent> (); charMove = GetComponent<movimientoEnemigo> (); anim = GetComponent<Animator> (); // enemyToAtack=false; Transform[] wayp = wayPointHolder.GetComponentsInChildren<Transform> (); foreach(Transform tr in wayp){ if (tr != wayPointHolder.transform){ wayPoints.Add(tr); } } }