Example #1
0
 void Update()
 {
     timer += Time.deltaTime;
     if (EnMov.NextTarget != null)
     {
         if (timer >= Stats.AttackSpeed && EnMov.BuildingInRange() && Stats.CurrentHealth > 0)
         {
             ApplyAura(EnMov.NextTarget);
         }
     }
 }
Example #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);
         }
     }
 }