Ejemplo n.º 1
0
 void Start()
 {
     // needs to get the enemies movement direction
     moveDirection = Vector3.forward;
     health = maxHealth;
     attackCooldownTime = 3f;
     attackRange = 1f;
     enemyChemicals = new Chemicals();
     //GetComponentInChildren<Light>().color = new Color(enemyChemicals.Redion, enemyChemicals.Greenium, enemyChemicals.Blurine);
     GetComponentInChildren<ParticleSystem>().startColor = enemyChemicals.getChemicalsWithAlpha(0.15f);
     SetPlayerList ();
     findNewTarget();
 }