示例#1
0
 public override void UseTheSkill()
 {
     if (canUseTheSkill())
     {
         thePlayer.theSkillNow = this;
         theStateNow           = skillState.isUsing;
         if (moveOBJ.theMoveModeNow is flyMoveMode)
         {
             moveOBJ.changeMoveMode(new runMoveMode());
             ChangePicture(runSprite);
             skillName        = "御剑飞仙";                                                                                //技能名字
             skillInformation = "御剑而飞,冯虚卓然,关山万里瞬息而至。\n冷却时间:" + (skillAllTimer - skillEffectTime).ToString("f1") + "秒"; //技能介绍
         }
         else
         {
             moveOBJ.changeMoveMode(new flyMoveMode());
             ChangePicture(flySprite);
             skillName        = "取消御剑";                                                                                 //技能名字
             skillInformation = "取消御剑飞仙,在凡尘经历人生,修仙修心。\n冷却时间:" + (skillAllTimer - skillEffectTime).ToString("f1") + "秒"; //技能介绍
         }
     }
     else
     {
         UIController.GetInstance().ShowUI <messageBox> ("暂时无法使用此技能");
     }
 }