示例#1
0
 public void AbortCast()
 {
     wait          = null;
     nowCastTime   = 0;
     castTime      = 0;
     target        = Vector3.zero;
     startPosition = Vector3.zero;
     isCast        = false;
     skill         = null;
 }
示例#2
0
 public void SkillUse(int id, Vector3 _target, Vector3 _startPosition, int playerId)
 {
     if (wait != null && wait.id == id)
     {
         return;
     }
     skill         = SkillManager.singleton.getSkill(id);
     wait          = (new SkillWait(id, skill.spoperties.castTime));
     castTime      = wait.time;
     nowCastTime   = wait.time;
     isCast        = true;
     target        = _target;
     startPosition = _startPosition;
 }