// Token: 0x06003864 RID: 14436 RVA: 0x000C81D8 File Offset: 0x000C63D8 public bool PlayWorldAnimation(GroupEvent GroupEvent) { if (this._characterSignalee) { global::PlayerAnimation component = this._characterSignalee.GetComponent <global::PlayerAnimation>(); if (component) { return(component.PlayAnimation(GroupEvent)); } } return(false); }
// Token: 0x0600386A RID: 14442 RVA: 0x000C8384 File Offset: 0x000C6584 protected bool CheckParent() { if (this._parentView) { return(true); } if (this._parentViewID != uLink.NetworkViewID.unassigned) { this._parentView = Facepunch.NetworkView.Find(this._parentViewID); if (this._parentView) { this._parentMain = null; global::PlayerAnimation component = this._parentView.GetComponent <global::PlayerAnimation>(); global::Socket.LocalSpace itemAttachment = component.itemAttachment; if (itemAttachment != null) { Vector3 offsetFromThisSocket; Quaternion rotationOffsetFromThisSocket; if (this.hand.parent && this.hand.parent != base.transform) { offsetFromThisSocket = base.transform.InverseTransformPoint(this.hand.position); Quaternion rotation = this.hand.rotation; Vector3 vector = rotation * Vector3.forward; Vector3 vector2 = rotation * Vector3.up; vector = base.transform.InverseTransformDirection(vector); vector2 = base.transform.InverseTransformDirection(vector2); rotationOffsetFromThisSocket = Quaternion.LookRotation(vector, vector2); } else { offsetFromThisSocket = this.hand.offset; rotationOffsetFromThisSocket = Quaternion.Euler(this.hand.eulerRotate); } itemAttachment.AddChildWithCoords(base.transform, offsetFromThisSocket, rotationOffsetFromThisSocket); } if (base.networkView.isMine) { this.worldModels = global::actor.forceThirdPerson; } this.FindSignalee(); return(true); } } this.ClearSignals(); return(false); }