public void Update() { if (!base.isLocalPlayer) { return; } string text = string.Empty; RaycastHit raycastHit; if (Physics.Raycast(new Ray(this.cam.position, this.cam.forward), out raycastHit, 3f, this.inspectionMask)) { Ragdoll componentInParent = raycastHit.transform.GetComponentInParent <Ragdoll>(); if (componentInParent != null) { text = TranslationReader.Get("Death_Causes", 12); text = text.Replace("[user]", componentInParent.owner.steamClientName); text = text.Replace("[cause]", RagdollManager.GetCause(componentInParent.owner.deathCause, false)); text = text.Replace("[class]", string.Concat(new string[] { "<color=", this.GetColor(this.ccm.klasy[componentInParent.owner.charclass].classColor), ">", this.ccm.klasy[componentInParent.owner.charclass].fullName, "</color>" })); } } this.txt.text = text; }