public void Set(HitBoxSystem hitBoxSystem, ref Vector3 localPoint, ref Angle2 localNormal, byte bodyPart, ref uLink.NetworkMessageInfo info) { IDRemoteBodyPart dRemoteBodyPart; this.queued = true; this.localPoint = localPoint; this.localNormal = localNormal.forward; this.bodyPart = (BodyPart)bodyPart; if (this.bodyPart == BodyPart.Undefined) { this.transform = null; } else if (!hitBoxSystem.bodyParts.TryGetValue(this.bodyPart, out dRemoteBodyPart)) { this.transform = null; } else { this.transform = dRemoteBodyPart.transform; } }
public void Set(HitBoxSystem hitBoxSystem, ref Vector3 localPoint, ref Angle2 localNormal, byte bodyPart, ref uLink.NetworkMessageInfo info) { IDRemoteBodyPart dRemoteBodyPart; this.queued = true; this.localPoint = localPoint; this.localNormal = localNormal.forward; this.bodyPart = (BodyPart)bodyPart; if (this.bodyPart == BodyPart.Undefined) { this.transform = null; } else if (!hitBoxSystem.bodyParts.TryGetValue(this.bodyPart, out dRemoteBodyPart)) { this.transform = null; } else { this.transform = dRemoteBodyPart.transform; } }