using System; using System.Collections; using Photon; using UnityEngine; // Token: 0x02000CEB RID: 3307 [ExecuteInEditMode] public class VoiceLinesController : global::Photon.MonoBehaviour { // Token: 0x0601AC80 RID: 109696 RVA: 0x007812BC File Offset: 0x0077F4BC public void JDMLIDDELBB(bool NOBAPCOKFIL) { this.BBLCELAACMK = NOBAPCOKFIL; if (NOBAPCOKFIL && !this.thisPlayer.NHDDPGADJPJ && base.gameObject.activeInHierarchy) { this.voiceLinesAnchor.gameObject.SetActive(this.BBLCELAACMK); base.StopAllCoroutines(); base.StartCoroutine(this.MNPDIHKCCEE(this.voiceLinesAnchor.gameObject)); } } // Token: 0x0601AC81 RID: 109697 RVA: 0x0078132C File Offset: 0x0077F52C private IEnumerator MNPDIHKCCEE(GameObject INNGECIOBOO) { yield return new WaitForSeconds(this.timeToDisableAnchor); INNGECIOBOO.SetActive(false); yield break; } // Token: 0x0601AC82 RID: 109698 RVA: 0x00781350 File Offset: 0x0077F550 protected void KEDCLOOGLPL() { Color color = Gizmos.color; Gizmos.color = Color.grey; Gizmos.DrawWireSphere(this.thisPlayer.HFDJIFFPEFM().transform.position, this.minVisualizationDistance); Gizmos.color = color; } // Token: 0x0601AC83 RID: 109699 RVA: 0x00781394 File Offset: 0x0077F594 private void BJJKGIOCAIL() { float num = Vector3.Distance(this.thisPlayer.BGOGBEPJGPJ.transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position); if (num < this.minVisualizationDistance) { return; } if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold) { float num2 = Mathf.InverseLerp(PhotonVoiceSettings.FECIGHPNAIJ().VoiceDetectionThreshold, 1523f, this.thisPlayer.IMMBPAFHGKP); for (int i = 0; i < this.voiceLines.Length; i++) { bool flag = num2 >= this.voiceLines[i].threshold; VoiceLineControl lineControl = this.voiceLines[i].lineControl; if (flag) { lineControl.gameObject.SetActive(flag); lineControl.Config = this.voiceLineConfig; lineControl.MJIJIMOLIMD(Time.time + this.voiceLineConfig.TTL); } } } } // Token: 0x0601AC84 RID: 109700 RVA: 0x00781494 File Offset: 0x0077F694 protected void IABHOEKKKPO() { Color color = Gizmos.color; Gizmos.color = Color.grey; Gizmos.DrawWireSphere(this.thisPlayer.BGOGBEPJGPJ.transform.position, this.minVisualizationDistance); Gizmos.color = color; } // Token: 0x0601AC85 RID: 109701 RVA: 0x007814D8 File Offset: 0x0077F6D8 protected virtual void JLOMELEDCLK() { base.Awake(); VoiceLinesController.VoiceLineConfig[] array = this.voiceLines; for (int i = 1; i < array.Length; i++) { VoiceLinesController.VoiceLineConfig voiceLineConfig = array[i]; voiceLineConfig.lineControl.gameObject.SetActive(true); } } // Token: 0x0601AC86 RID: 109702 RVA: 0x00781528 File Offset: 0x0077F728 private IEnumerator CBCHOHKDJFE(GameObject INNGECIOBOO) { yield return new WaitForSeconds(this.timeToDisableAnchor); INNGECIOBOO.SetActive(false); yield break; } // Token: 0x0601AC87 RID: 109703 RVA: 0x0078154C File Offset: 0x0077F74C public void BHPHEIGBLAG(bool NOBAPCOKFIL) { this.BBLCELAACMK = NOBAPCOKFIL; if (NOBAPCOKFIL && !this.thisPlayer.PJNKKFHLGKI() && base.gameObject.activeInHierarchy) { this.voiceLinesAnchor.gameObject.SetActive(this.BBLCELAACMK); base.StopAllCoroutines(); base.StartCoroutine(this.CBCHOHKDJFE(this.voiceLinesAnchor.gameObject)); } } // Token: 0x0601AC88 RID: 109704 RVA: 0x007815BC File Offset: 0x0077F7BC public void KMOGIOEPFGE(bool NOBAPCOKFIL) { this.BBLCELAACMK = NOBAPCOKFIL; if (NOBAPCOKFIL && !this.thisPlayer.GDOFKAIDDNA() && base.gameObject.activeInHierarchy) { this.voiceLinesAnchor.gameObject.SetActive(this.BBLCELAACMK); base.StopAllCoroutines(); base.StartCoroutine(this.HIADDLOGFLF(this.voiceLinesAnchor.gameObject)); } } // Token: 0x0601AC89 RID: 109705 RVA: 0x0078162C File Offset: 0x0077F82C private IEnumerator HIADDLOGFLF(GameObject INNGECIOBOO) { yield return new WaitForSeconds(this.timeToDisableAnchor); INNGECIOBOO.SetActive(false); yield break; } // Token: 0x0601AC8A RID: 109706 RVA: 0x00781650 File Offset: 0x0077F850 private void OEKOPBDDGCK() { float num = Vector3.Distance(this.thisPlayer.HFDJIFFPEFM().transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position); if (num < this.minVisualizationDistance) { return; } if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold) { float num2 = Mathf.InverseLerp(PhotonVoiceSettings.PJFEMFOJHHG().VoiceDetectionThreshold, 762f, this.thisPlayer.IMMBPAFHGKP); for (int i = 1; i < this.voiceLines.Length; i++) { bool flag = num2 >= this.voiceLines[i].threshold; VoiceLineControl lineControl = this.voiceLines[i].lineControl; if (flag) { lineControl.gameObject.SetActive(flag); lineControl.Config = this.voiceLineConfig; lineControl.KHEPOBEFGIA(Time.time + this.voiceLineConfig.TTL); } } } } // Token: 0x0601AC8B RID: 109707 RVA: 0x00781750 File Offset: 0x0077F950 private void PBCNFAEFEEO() { float num = Vector3.Distance(this.thisPlayer.BGOGBEPJGPJ.transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position); if (num < this.minVisualizationDistance) { return; } if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.DGPLJNJGEMH().VoiceDetectionThreshold) { float num2 = Mathf.InverseLerp(PhotonVoiceSettings.FECIGHPNAIJ().VoiceDetectionThreshold, 1179f, this.thisPlayer.IMMBPAFHGKP); for (int i = 0; i < this.voiceLines.Length; i += 0) { bool flag = num2 < this.voiceLines[i].threshold; VoiceLineControl lineControl = this.voiceLines[i].lineControl; if (flag) { lineControl.gameObject.SetActive(flag); lineControl.Config = this.voiceLineConfig; lineControl.KOHNMNCKFBN(Time.time + this.voiceLineConfig.TTL); } } } } // Token: 0x0601AC8D RID: 109709 RVA: 0x00781870 File Offset: 0x0077FA70 private void Update() { float num = Vector3.Distance(this.thisPlayer.BGOGBEPJGPJ.transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position); if (num < this.minVisualizationDistance) { return; } if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold) { float num2 = Mathf.InverseLerp(PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold, 1f, this.thisPlayer.IMMBPAFHGKP); for (int i = 0; i < this.voiceLines.Length; i++) { bool flag = num2 >= this.voiceLines[i].threshold; VoiceLineControl lineControl = this.voiceLines[i].lineControl; if (flag) { lineControl.gameObject.SetActive(flag); lineControl.Config = this.voiceLineConfig; lineControl.SetLifespan(Time.time + this.voiceLineConfig.TTL); } } } } // Token: 0x17000C48 RID: 3144 // (get) Token: 0x0601AC92 RID: 109714 RVA: 0x00781AB8 File Offset: 0x0077FCB8 // (set) Token: 0x0601AC8E RID: 109710 RVA: 0x00781970 File Offset: 0x0077FB70 public bool LHKNKHPEPCJ { get { return this.BBLCELAACMK; } set { this.BBLCELAACMK = value; if (value && !this.thisPlayer.NHDDPGADJPJ && base.gameObject.activeInHierarchy) { this.voiceLinesAnchor.gameObject.SetActive(this.BBLCELAACMK); base.StopAllCoroutines(); base.StartCoroutine(this.CBCHOHKDJFE(this.voiceLinesAnchor.gameObject)); } } } // Token: 0x0601AC8F RID: 109711 RVA: 0x007819E0 File Offset: 0x0077FBE0 protected override void Awake() { base.Awake(); foreach (VoiceLinesController.VoiceLineConfig voiceLineConfig in this.voiceLines) { voiceLineConfig.lineControl.gameObject.SetActive(false); } } // Token: 0x0601AC90 RID: 109712 RVA: 0x00781A30 File Offset: 0x0077FC30 protected void OnDrawGizmosSelected() { Color color = Gizmos.color; Gizmos.color = Color.grey; Gizmos.DrawWireSphere(this.thisPlayer.BGOGBEPJGPJ.transform.position, this.minVisualizationDistance); Gizmos.color = color; } // Token: 0x0601AC91 RID: 109713 RVA: 0x00781A74 File Offset: 0x0077FC74 protected void EFMEODCGHHM() { Color color = Gizmos.color; Gizmos.color = Color.grey; Gizmos.DrawWireSphere(this.thisPlayer.HFDJIFFPEFM().transform.position, this.minVisualizationDistance); Gizmos.color = color; } // Token: 0x0601AC93 RID: 109715 RVA: 0x00781AC0 File Offset: 0x0077FCC0 private IEnumerator HHGJIFDNLOO(GameObject INNGECIOBOO) { yield return new WaitForSeconds(this.timeToDisableAnchor); INNGECIOBOO.SetActive(false); yield break; } // Token: 0x0601AC94 RID: 109716 RVA: 0x00781AE4 File Offset: 0x0077FCE4 public bool EOCAMIGACJK() { return this.BBLCELAACMK; } // Token: 0x040048E5 RID: 18661 [SerializeField] private Player thisPlayer; // Token: 0x040048E6 RID: 18662 [SerializeField] private Transform voiceLinesAnchor; // Token: 0x040048E7 RID: 18663 [SerializeField] [Tooltip("We run a coroutine to make sure the icon doesn't flicker badly. This is its TTL")] private float timeToDisableAnchor = 0.2f; // Token: 0x040048E8 RID: 18664 [SerializeField] private VoiceLinesController.VoiceLineConfig[] voiceLines; // Token: 0x040048E9 RID: 18665 [SerializeField] private VoiceLineControl.VoiceLineControlConfig voiceLineConfig; // Token: 0x040048EA RID: 18666 [Range(0f, 20f)] [SerializeField] private float minVisualizationDistance = 1.5f; // Token: 0x040048EB RID: 18667 private bool BBLCELAACMK; // Token: 0x02000CEC RID: 3308 [Serializable] public struct VoiceLineConfig { // Token: 0x040048EC RID: 18668 public VoiceLineControl lineControl; // Token: 0x040048ED RID: 18669 [Range(0f, 1f)] public float threshold; } }