using System; using System.Runtime.InteropServices; using Cpp2IlInjected; using Photon.Pun; using UnityEngine; // Token: 0x020003AA RID: 938 [Token(Token = "0x20003AA")] [StructLayout(3)] public class VoiceLinesController2D : MonoBehaviourPun { // Token: 0x17000530 RID: 1328 // (get) Token: 0x06001DA1 RID: 7585 RVA: 0x0007C988 File Offset: 0x0007AB88 [Token(Token = "0x17000530")] public Transform IBBMBAPJPDO { [Token(Token = "0x6001DA1")] [Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")] get { return this.voiceLinesAnchor; } } // Token: 0x06001DA2 RID: 7586 RVA: 0x0007C99C File Offset: 0x0007AB9C [Token(Token = "0x6001DA2")] [Address(RVA = "0x1A14EE0", Offset = "0x1A138E0", VA = "0x181A14EE0", Slot = "13")] protected override void Awake() { base..ctor(); VoiceLinesController2D.VoiceLineConfig[] array = this.voiceLines; int num = 0; int length = array.Length; if (num < length) { num += 2; num += num; int num2 = 0; GameObject gameObject; gameObject.SetActive(num2 != 0); num++; } } // Token: 0x06001DA3 RID: 7587 RVA: 0x0007C9E0 File Offset: 0x0007ABE0 [Token(Token = "0x6001DA3")] [Address(RVA = "0x1A15070", Offset = "0x1A13A70", VA = "0x181A15070")] private void Start() { Player player = this.thisPlayer; base.gameObject.SetLayerRecursively(8); } // Token: 0x06001DA4 RID: 7588 RVA: 0x0007CA08 File Offset: 0x0007AC08 [Token(Token = "0x6001DA4")] [Address(RVA = "0x1A14F60", Offset = "0x1A13960", VA = "0x181A14F60")] protected void OnDrawGizmosSelected() { Player player = this.thisPlayer; int num = 0; if (player != num) { Color color = Gizmos.color; Transform transform = this.thisPlayer.head.transform; Vector3 vector; float z = vector.z; } } // Token: 0x06001DA5 RID: 7589 RVA: 0x0007CA50 File Offset: 0x0007AC50 [Token(Token = "0x6001DA5")] [Address(RVA = "0x1A150C0", Offset = "0x1A13AC0", VA = "0x181A150C0")] private void Update() { Player player = this.thisPlayer; int num = 0; if (!(player == num)) { bool isMuted = this.thisPlayer.KHMAFBIKIMA; bool flag; if (!isMuted && isMuted && !flag) { Transform transform = SingletonMonoBehaviour.Instance.CHLMFLCFGFL.transform; Player player2 = this.thisPlayer; if (transform == 0) { Transform transform2 = this.thisPlayer.head.transform; float num2 = this.minVisualizationDistance; float num3 = this.maxVisualizationDistance; } Player player3 = this.thisPlayer; Transform transform3 = this.thisPlayer.head.transform; Vector3 vector; float z = vector.z; float audioMaxForFrame = this.thisPlayer.DNMEOEIALCD; int num4 = 0; float num5; float num6; if (audioMaxForFrame > num5) { num6 = this.thisPlayer.DNMEOEIALCD; num6 = num5; num5 = Mathf.InverseLerp(num6, 1f, num6); if (num4 != 0) { VoiceLinesController2D.VoiceLineConfig voiceLineConfig = this.shoutConfig; GameObject gameObject; ulong num7; gameObject.SetActive(num7 != 0UL); VoiceLinesController2D.VoiceLineConfig voiceLineConfig2 = this.shoutConfig; VoiceLineControl.VoiceLineControlConfig voiceLineControlConfig = this.voiceLineConfig; VoiceLinesController2D.VoiceLineConfig voiceLineConfig3 = this.shoutConfig; float time = Time.time; VoiceLineControl.VoiceLineControlConfig voiceLineControlConfig2 = this.voiceLineConfig; } int num8 = this.voiceLines.Length; VoiceLinesController2D.VoiceLineConfig[] array = this.voiceLines; num8 += num8; VoiceLinesController2D.VoiceLineConfig voiceLineConfig4 = this.shoutConfig; num8 += num8; GameObject gameObject2; if (!gameObject2.activeInHierarchy) { int num9 = 0; GameObject gameObject3; gameObject3.SetActive(num9 != 0); VoiceLineControl.VoiceLineControlConfig voiceLineControlConfig3 = this.voiceLineConfig; array[8] = voiceLineControlConfig3; float time2 = Time.time; VoiceLineControl.VoiceLineControlConfig voiceLineControlConfig4 = this.voiceLineConfig; array[2] = time2; } array[2] = num4; } Transform transform4 = this.thisPlayer.head.transform; Transform transform5 = this.voiceLinesAnchor; float num10; num6 = num10; num10 = num6; int num11 = 0; if (this.maxAngleDiff > (float)num11) { int num12 = 0; base.transform.localRotation = num12; this.voiceLinesAnchor.localPosition = num12; throw new NullReferenceException(); } Transform transform6 = base.transform; int num13 = 0; Quaternion identity = Quaternion.identity; transform6.localRotation = num13; } } } // Token: 0x06001DA6 RID: 7590 RVA: 0x0007CC60 File Offset: 0x0007AE60 [Token(Token = "0x6001DA6")] [Address(RVA = "0x1A15960", Offset = "0x1A14360", VA = "0x181A15960")] public VoiceLinesController2D() { } // Token: 0x040016EB RID: 5867 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x40016EB")] public Player thisPlayer; // Token: 0x040016EC RID: 5868 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x40016EC")] [SerializeField] private Transform voiceLinesAnchor; // Token: 0x040016ED RID: 5869 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x40016ED")] [SerializeField] private VoiceLinesController2D.VoiceLineConfig[] voiceLines; // Token: 0x040016EE RID: 5870 [global::Cpp2IlInjected.FieldOffset(Offset = "0x58")] [Token(Token = "0x40016EE")] [SerializeField] private VoiceLinesController2D.VoiceLineConfig shoutConfig; // Token: 0x040016EF RID: 5871 [global::Cpp2IlInjected.FieldOffset(Offset = "0x68")] [Token(Token = "0x40016EF")] [SerializeField] private VoiceLineControl.VoiceLineControlConfig voiceLineConfig; // Token: 0x040016F0 RID: 5872 [global::Cpp2IlInjected.FieldOffset(Offset = "0x70")] [Token(Token = "0x40016F0")] [SerializeField] [Range(0f, 20f)] private float minVisualizationDistance = 1.5f; // Token: 0x040016F1 RID: 5873 [global::Cpp2IlInjected.FieldOffset(Offset = "0x74")] [Token(Token = "0x40016F1")] [SerializeField] [Range(50f, 200f)] private float maxVisualizationDistance = 100f; // Token: 0x040016F2 RID: 5874 [global::Cpp2IlInjected.FieldOffset(Offset = "0x78")] [Token(Token = "0x40016F2")] [SerializeField] [Range(0f, 180f)] private float maxAngleDiff = 45f; // Token: 0x040016F3 RID: 5875 [global::Cpp2IlInjected.FieldOffset(Offset = "0x7C")] [Token(Token = "0x40016F3")] [SerializeField] [Range(0f, 180f)] private float offsetAngle = 45f; // Token: 0x020003AB RID: 939 [Token(Token = "0x20003AB")] [Serializable] public struct VoiceLineConfig { // Token: 0x040016F4 RID: 5876 [global::Cpp2IlInjected.FieldOffset(Offset = "0x0")] [Token(Token = "0x40016F4")] public VoiceLineControl lineControl; // Token: 0x040016F5 RID: 5877 [global::Cpp2IlInjected.FieldOffset(Offset = "0x8")] [Token(Token = "0x40016F5")] [Range(0f, 1f)] public float threshold; } }