Exemplo n.º 1
0
 public override void OnSkillReadyBegin(ReadySkillAction action)
 {
     base.OnSkillReadyBegin(action);
     if (this.skillIdx == 2)
     {
         Vector3?targetPosition = action.targetPosition;
         if (targetPosition.HasValue)
         {
             this.unit.mTransform.LookAt(action.targetPosition.Value);
         }
     }
 }
Exemplo n.º 2
0
 public override void OnSkillReadyBegin(ReadySkillAction action)
 {
     base.OnSkillReadyBegin(action);
     if (action.targetUnits != null && action.targetUnits.Count > 0)
     {
         if (action.targetUnits[0] == this.unit)
         {
             this.unit.animController.PlayAnim(AnimationType.Conjure, true, 5, true, false);
         }
         else
         {
             this.unit.animController.PlayAnim(AnimationType.Conjure, true, 2, true, false);
         }
     }
 }
Exemplo n.º 3
0
 public override void OnSkillReadyBegin(ReadySkillAction action)
 {
     base.OnSkillReadyBegin(action);
     if (this.unit.buffManager.IsHaveBuff(Skill_Jinkesi_01.CannonBuff))
     {
         if (base.skillIndex == 0 || base.skillIndex == 2)
         {
             base.data.ready_actions = new string[]
             {
                 "Attack_Jinkesi_02_0"
             };
         }
         if (base.skillIndex == 1 || base.skillIndex == 3)
         {
             base.data.ready_actions = new string[]
             {
                 "Attack_Jinkesi_04_0"
             };
         }
     }
     else
     {
         if (base.skillIndex == 0 || base.skillIndex == 2)
         {
             base.data.ready_actions = new string[]
             {
                 "Attack_Jinkesi_01_0"
             };
         }
         if (base.skillIndex == 1 || base.skillIndex == 3)
         {
             base.data.ready_actions = new string[]
             {
                 "Attack_Jinkesi_03_0"
             };
         }
     }
 }
Exemplo n.º 4
0
 public override void OnSkillReadyBegin(ReadySkillAction action)
 {
     base.OnSkillReadyBegin(action);
     this.prePosition = this.unit.trans.position;
     this.isStop      = false;
 }
Exemplo n.º 5
0
 public override void OnSkillReadyBegin(ReadySkillAction action)
 {
     base.OnSkillReadyBegin(action);
 }