Example #1
0
 /// <summary>
 /// Update this instance.
 /// </summary>
 public override void Update()
 {
     if (!action.IsFinish())
     {
         action.Update();
         if (action.isForwardEnable())
         {
             hero.Forward = -action.FORWARD;
         }
     }
 }
Example #2
0
    /// <summary>
    /// Update this instance.
    /// </summary>
    public override void Update()
    {
        base.Update();

        if (null != action && !action.IsFinish())
        {
            action.Update();
        }

        if (isFinish)
        {
            return;
        }
        if (displayInfor.Param0 != 0)
        {
            ChangeDir();
        }
        if (IsActionFinish() || ticker.IsActiveOneTime())
        {
            PlayEndFx(5f);
            isFinish = true;
        }
    }