public void AddCustomMoveLerp(CustomMoveLerpFunc func) { if (this.bNeedLerp) { this.CustomMoveLerp = (CustomMoveLerpFunc)Delegate.Combine(this.CustomMoveLerp, func); } }
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); } } }