254 lines
7.0 KiB
C#
254 lines
7.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200039B RID: 923
|
|
[Token(Token = "0x200039B")]
|
|
public class VoiceLinesController2D : MonoBehaviourPun
|
|
{
|
|
// Token: 0x1700055F RID: 1375
|
|
// (get) Token: 0x06001DC6 RID: 7622 RVA: 0x0007AAFC File Offset: 0x00078CFC
|
|
[Token(Token = "0x1700055F")]
|
|
public Transform IBBMBAPJPDO
|
|
{
|
|
[Token(Token = "0x6001DC6")]
|
|
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
|
get
|
|
{
|
|
return this.voiceLinesAnchor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001DC7 RID: 7623 RVA: 0x0007AB10 File Offset: 0x00078D10
|
|
[Token(Token = "0x6001DC7")]
|
|
[Address(RVA = "0x1563080", Offset = "0x1561E80", VA = "0x181563080", 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++;
|
|
}
|
|
KHINMMJIENE khinmmjiene;
|
|
this.NDAKFEMHFON = khinmmjiene;
|
|
}
|
|
|
|
// Token: 0x06001DC8 RID: 7624 RVA: 0x0007AB60 File Offset: 0x00078D60
|
|
[Token(Token = "0x6001DC8")]
|
|
[Address(RVA = "0x15632E0", Offset = "0x15620E0", VA = "0x1815632E0")]
|
|
private void Start()
|
|
{
|
|
Player player = this.thisPlayer;
|
|
base.gameObject.SetLayerRecursively(8);
|
|
}
|
|
|
|
// Token: 0x06001DC9 RID: 7625 RVA: 0x0007AB88 File Offset: 0x00078D88
|
|
[Token(Token = "0x6001DC9")]
|
|
[Address(RVA = "0x15631D0", Offset = "0x1561FD0", VA = "0x1815631D0")]
|
|
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: 0x06001DCA RID: 7626 RVA: 0x0007ABD0 File Offset: 0x00078DD0
|
|
[Token(Token = "0x6001DCA")]
|
|
[Address(RVA = "0x1563330", Offset = "0x1562130", VA = "0x181563330")]
|
|
private void Update()
|
|
{
|
|
Player player = this.thisPlayer;
|
|
int num = 0;
|
|
if (!(player == num))
|
|
{
|
|
bool isMuted = this.thisPlayer.KHMAFBIKIMA;
|
|
bool flag;
|
|
if (!isMuted && isMuted && !flag)
|
|
{
|
|
KHINMMJIENE ndakfemhfon = this.NDAKFEMHFON;
|
|
if (flag)
|
|
{
|
|
Transform transform = SingletonMonoBehaviour.ONCPNMDGGKG.CHLMFLCFGFL.transform;
|
|
Player player2 = this.thisPlayer;
|
|
if (transform == 0)
|
|
{
|
|
Transform transform2 = this.thisPlayer.head.transform;
|
|
float num2;
|
|
if (this.minVisualizationDistance > num2)
|
|
{
|
|
return;
|
|
}
|
|
float num3 = this.maxVisualizationDistance;
|
|
if (num2 > num3)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
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: 0x06001DCB RID: 7627 RVA: 0x0007AE00 File Offset: 0x00079000
|
|
[Token(Token = "0x6001DCB")]
|
|
[Address(RVA = "0x1563BF0", Offset = "0x15629F0", VA = "0x181563BF0")]
|
|
public VoiceLinesController2D()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040016A2 RID: 5794
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40016A2")]
|
|
public Player thisPlayer;
|
|
|
|
// Token: 0x040016A3 RID: 5795
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40016A3")]
|
|
[SerializeField]
|
|
private Transform voiceLinesAnchor;
|
|
|
|
// Token: 0x040016A4 RID: 5796
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40016A4")]
|
|
[SerializeField]
|
|
private VoiceLinesController2D.VoiceLineConfig[] voiceLines;
|
|
|
|
// Token: 0x040016A5 RID: 5797
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40016A5")]
|
|
[SerializeField]
|
|
private VoiceLinesController2D.VoiceLineConfig shoutConfig;
|
|
|
|
// Token: 0x040016A6 RID: 5798
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x40016A6")]
|
|
[SerializeField]
|
|
private VoiceLineControl.VoiceLineControlConfig voiceLineConfig;
|
|
|
|
// Token: 0x040016A7 RID: 5799
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40016A7")]
|
|
[SerializeField]
|
|
[Range(0f, 20f)]
|
|
private float minVisualizationDistance = 1.5f;
|
|
|
|
// Token: 0x040016A8 RID: 5800
|
|
[FieldOffset(Offset = "0x74")]
|
|
[Token(Token = "0x40016A8")]
|
|
[SerializeField]
|
|
[Range(50f, 200f)]
|
|
private float maxVisualizationDistance = 100f;
|
|
|
|
// Token: 0x040016A9 RID: 5801
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x40016A9")]
|
|
[SerializeField]
|
|
[Range(0f, 180f)]
|
|
private float maxAngleDiff = 45f;
|
|
|
|
// Token: 0x040016AA RID: 5802
|
|
[FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x40016AA")]
|
|
[SerializeField]
|
|
[Range(0f, 180f)]
|
|
private float offsetAngle = 45f;
|
|
|
|
// Token: 0x040016AB RID: 5803
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x40016AB")]
|
|
private KHINMMJIENE NDAKFEMHFON;
|
|
|
|
// Token: 0x0200039C RID: 924
|
|
[Token(Token = "0x200039C")]
|
|
[Serializable]
|
|
public struct VoiceLineConfig
|
|
{
|
|
// Token: 0x040016AC RID: 5804
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40016AC")]
|
|
public VoiceLineControl lineControl;
|
|
|
|
// Token: 0x040016AD RID: 5805
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x40016AD")]
|
|
[Range(0f, 1f)]
|
|
public float threshold;
|
|
}
|
|
}
|