public override int GetHashCode() { return (RGBA.GetHashCode() ^ RepeatU.GetHashCode() ^ RepeatV.GetHashCode() ^ OffsetU.GetHashCode() ^ OffsetV.GetHashCode() ^ Rotation.GetHashCode() ^ Glow.GetHashCode() ^ Bump.GetHashCode() ^ Shiny.GetHashCode() ^ Fullbright.GetHashCode() ^ MediaFlags.GetHashCode() ^ TexMapType.GetHashCode() ^ TextureID.GetHashCode()); }
private void OnGUI() { if (myPlayer != null) { var main = Camera.main; var boneTransform = myPlayer.charAnim.GetBoneTransform(HumanBodyBones.Head); var light = boneTransform.GetComponent <Light>(); if (CheatToggles.enableBasicInformations == true) { BasicInformations.Enable(); } else { } if (CheatToggles.enableEsp == true) { GUI.Label(new Rect(10f, 160f, 100f, 50f), "<b><color=#A302B5>ESP:</color> <color=#00C403>On</color></b>"); ESP.Enable(main); } else { GUI.Label(new Rect(10f, 160f, 100f, 50f), "<b><color=#A302B5>ESP:</color> <color=#C40000>Off</color></b>"); } if (CheatToggles.enableFullbright == true) { GUI.Label(new Rect(10f, 175f, 100f, 50f), "<b><color=#A302B5>Fullbright:</color> <color=#00C403>On</color></b>"); Fullbright.Enable(light, boneTransform); } else { GUI.Label(new Rect(10f, 175f, 100f, 50f), "<b><color=#A302B5>Fullbright:</color> <color=#C40000>Off</color></b>"); //UnityEngine.Object.Destroy(myPlayer.charAnim.GetBoneTransform(HumanBodyBones.Head).GetComponent<Light>()); Fullbright.Disable(light); } } }