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