Beispiel #1
0
 private void Complete()
 {
     this.OnCompletedStateTask();
     this.Merchant.Animation.ResetDefaultAnimatorController();
     if (Object.op_Inequality((Object)this.CurrentPoint, (Object)null))
     {
         ActionPoint currentPoint = this.CurrentPoint;
         this.CurrentPoint             = (ActionPoint)null;
         this.Merchant.PrevActionPoint = currentPoint;
         if (this.IsActiveNavMeshAgent)
         {
             this.Merchant.NavMeshAgent.CompleteOffMeshLink();
         }
         if (Merchant.NormalModeList.Contains(this.Merchant.CurrentMode))
         {
             this.Merchant.SetStand(this.recoveryPoint, this.animInfo.outEnableBlend, this.animInfo.outBlendSec, this.animInfo.directionType);
         }
         currentPoint.ReleaseSlot((Actor)this.Merchant);
         this.Merchant.ClearItems();
         this.Merchant.ClearParticles();
     }
     this.Merchant.EventKey = (AIProject.EventType) 0;
 }