Esempio n. 1
0
 public void AddCustomMoveLerp(CustomMoveLerpFunc func)
 {
     if (this.bNeedLerp)
     {
         this.CustomMoveLerp = (CustomMoveLerpFunc)Delegate.Combine(this.CustomMoveLerp, func);
     }
 }
Esempio n. 2
0
 public void RmvCustomMoveLerp(CustomMoveLerpFunc func)
 {
     if (this.bNeedLerp)
     {
         this.CustomMoveLerp = (CustomMoveLerpFunc)Delegate.Remove(this.CustomMoveLerp, func);
         base.gameObject.transform.position = (Vector3)this.ActorObj.location;
         if (this.CustomMoveLerp != null)
         {
             this.CustomMoveLerp(this.ActorObj, 0, true);
         }
         if (this.ActorObj.MovementComponent != null)
         {
             this.ActorObj.MovementComponent.GravityModeLerp(0, true);
         }
     }
 }