Esempio n. 1
0
 public void OnBtnTest1()
 {
     _act.Cast(new OneTarget(_unit2));
     _act.Cast(new OneTarget(_unit3));
     ShowUnit(_unit2);
     ShowUnit(_unit3);
 }
Esempio n. 2
0
 protected override void OnUpdate(float dTime)
 {
     currentCastTime += dTime;
     if (currentCastTime >= ActiveSkill.EarlyBreakTime)
     {
         Unit.RotatingState.AddPauser(Unit.CastingState);
     }
     if (currentCastTime >= ActiveSkill.CastTime && !hasCasted)
     {
         ActiveSkill.Cast(Unit, TargetInfo);
         if (castEvent != null)
         {
             castEvent(new CastEventArgs(this));
         }
         hasCasted = true;
     }
     if (currentCastTime >= ActiveSkill.TotalCastTime)
     {
         if (!lastCommand.IsInterrupt && ActiveSkill.HasNextCombo)
         {
             currentCommand = null;
             Start(lastCommand);
         }
         else
         {
             Reset();
         }
     }
 }