// Token: 0x06002E37 RID: 11831 RVA: 0x000B08B0 File Offset: 0x000AEAB0 private bool CheckChanges(bool hasMotor, Transform parent) { if (this.hadMotor != hasMotor || this.otherParent != parent) { this.hadMotor = hasMotor; this.groundLocalVelocity = default(Vector3G); this.groundWorldVelocity = default(Vector3G); this.localVelocity = default(Vector3G); this.worldVelocity = default(Vector3G); this.impulseForce = default(global::HeadBob.VectorAccelSampler); this.impulseTorque = default(global::HeadBob.VectorAccelSampler); this.lastPosition = default(global::HeadBob.VectorStamp); this.otherParent = parent; this.raw_pos = default(Vector3G); this.raw_rot = default(Vector3G); global::BobEffectStack stack = this.predicted.stack; this.predicted = default(global::HeadBob.Weight); this.predicted.stack = stack; stack = this.working.stack; this.working = default(global::HeadBob.Weight); this.working.stack = stack; return(true); } return(false); }
// Token: 0x06001770 RID: 6000 RVA: 0x00057968 File Offset: 0x00055B68 public global::BobEffectStack Fork() { global::BobEffectStack bobEffectStack = new global::BobEffectStack(); bobEffectStack.isFork = true; bobEffectStack.owner = ((!this.isFork) ? this : this.owner); bobEffectStack.owner.forks.Add(bobEffectStack); foreach (global::BobEffect.Data data in bobEffectStack.owner.data) { bobEffectStack.data.Add(data.Clone()); } return(bobEffectStack); }
// Token: 0x0600176A RID: 5994 RVA: 0x000574CC File Offset: 0x000556CC public bool IsForkOf(global::BobEffectStack stack) { return(this.owner != null && this.owner == stack); }