/// <summary>
 /// 激活行为.
 /// </summary>
 public override void Active()
 {
     base.Active();
     hero.AnimCmp.StopAnim();
     hero.DispatchEvent(ControllerCommand.CrossFadeAnimation, hitAnim, AMIN_MODEL.ONCE, false);
     isFinish = false;
     if (!hero.property.isMainHero)
     {
         if (hero.Position != hero.property.finalDestination)
         {
             action = new ActionMoveDirect(hero);
             action.beginPosition = hero.Position;
             action.endPosition   = hero.property.finalDestination;
             action.height        = 0f;
             action.speed         = 0.5f;
             action.Active();
         }
     }
 }
Beispiel #2
0
 public ActionBack(SceneEntity hero) : base("ActionBack", hero)
 {
     isAidAction = true;
     action      = new ActionMoveDirect(hero);
 }