Exemplo n.º 1
0
 void Update()
 {
     timer += Time.deltaTime;
     if (EnMov.NextTarget != null)
     {
         if (timer >= Stats.AttackSpeed && EnMov.BuildingInRange() && Stats.CurrentHealth > 0)
         {
             ApplyAura(EnMov.NextTarget);
         }
     }
 }
Exemplo n.º 2
0
 void Update()
 {
     //Debug.Log(EnMov.BuildingInRange());
     timer += Time.deltaTime;
     //			Debug.Log (EnMov.BuildingInRange());
     //			Debug.Log (EnMov.NextTarget.Applied);
     //			Debug.Log (EnMov.NextTarget.obj);
     //Debug.Log(EnMov.BuildingInRange ());
     if (EnMov.NextTarget != null)
     {
         if (timer >= Stats.AttackSpeed && EnMov.BuildingInRange() && Stats.CurrentHealth > 0)
         {
             ApplyAura(EnMov.NextTarget);
         }
     }
 }