254 lines
7.0 KiB
C#
254 lines
7.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020003A5 RID: 933
|
|
[Token(Token = "0x20003A5")]
|
|
public class VoiceLinesController2D : MonoBehaviourPun
|
|
{
|
|
// Token: 0x1700056B RID: 1387
|
|
// (get) Token: 0x06001E41 RID: 7745 RVA: 0x0007BBC8 File Offset: 0x00079DC8
|
|
[Token(Token = "0x1700056B")]
|
|
public Transform IBBMBAPJPDO
|
|
{
|
|
[Token(Token = "0x6001E41")]
|
|
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")]
|
|
get
|
|
{
|
|
return this.voiceLinesAnchor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001E42 RID: 7746 RVA: 0x0007BBDC File Offset: 0x00079DDC
|
|
[Token(Token = "0x6001E42")]
|
|
[Address(RVA = "0x202E060", Offset = "0x202D060", VA = "0x18202E060", 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: 0x06001E43 RID: 7747 RVA: 0x0007BC2C File Offset: 0x00079E2C
|
|
[Token(Token = "0x6001E43")]
|
|
[Address(RVA = "0x202E2C0", Offset = "0x202D2C0", VA = "0x18202E2C0")]
|
|
private void Start()
|
|
{
|
|
Player player = this.thisPlayer;
|
|
base.gameObject.SetLayerRecursively(8);
|
|
}
|
|
|
|
// Token: 0x06001E44 RID: 7748 RVA: 0x0007BC54 File Offset: 0x00079E54
|
|
[Token(Token = "0x6001E44")]
|
|
[Address(RVA = "0x202E1B0", Offset = "0x202D1B0", VA = "0x18202E1B0")]
|
|
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: 0x06001E45 RID: 7749 RVA: 0x0007BC9C File Offset: 0x00079E9C
|
|
[Token(Token = "0x6001E45")]
|
|
[Address(RVA = "0x202E310", Offset = "0x202D310", VA = "0x18202E310")]
|
|
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: 0x06001E46 RID: 7750 RVA: 0x0007BECC File Offset: 0x0007A0CC
|
|
[Token(Token = "0x6001E46")]
|
|
[Address(RVA = "0x202EBD0", Offset = "0x202DBD0", VA = "0x18202EBD0")]
|
|
public VoiceLinesController2D()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040016FA RID: 5882
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40016FA")]
|
|
public Player thisPlayer;
|
|
|
|
// Token: 0x040016FB RID: 5883
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40016FB")]
|
|
[SerializeField]
|
|
private Transform voiceLinesAnchor;
|
|
|
|
// Token: 0x040016FC RID: 5884
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40016FC")]
|
|
[SerializeField]
|
|
private VoiceLinesController2D.VoiceLineConfig[] voiceLines;
|
|
|
|
// Token: 0x040016FD RID: 5885
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40016FD")]
|
|
[SerializeField]
|
|
private VoiceLinesController2D.VoiceLineConfig shoutConfig;
|
|
|
|
// Token: 0x040016FE RID: 5886
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x40016FE")]
|
|
[SerializeField]
|
|
private VoiceLineControl.VoiceLineControlConfig voiceLineConfig;
|
|
|
|
// Token: 0x040016FF RID: 5887
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40016FF")]
|
|
[SerializeField]
|
|
[Range(0f, 20f)]
|
|
private float minVisualizationDistance = 1.5f;
|
|
|
|
// Token: 0x04001700 RID: 5888
|
|
[FieldOffset(Offset = "0x74")]
|
|
[Token(Token = "0x4001700")]
|
|
[SerializeField]
|
|
[Range(50f, 200f)]
|
|
private float maxVisualizationDistance = 100f;
|
|
|
|
// Token: 0x04001701 RID: 5889
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4001701")]
|
|
[SerializeField]
|
|
[Range(0f, 180f)]
|
|
private float maxAngleDiff = 45f;
|
|
|
|
// Token: 0x04001702 RID: 5890
|
|
[FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x4001702")]
|
|
[SerializeField]
|
|
[Range(0f, 180f)]
|
|
private float offsetAngle = 45f;
|
|
|
|
// Token: 0x04001703 RID: 5891
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4001703")]
|
|
private KHINMMJIENE NDAKFEMHFON;
|
|
|
|
// Token: 0x020003A6 RID: 934
|
|
[Token(Token = "0x20003A6")]
|
|
[Serializable]
|
|
public struct VoiceLineConfig
|
|
{
|
|
// Token: 0x04001704 RID: 5892
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4001704")]
|
|
public VoiceLineControl lineControl;
|
|
|
|
// Token: 0x04001705 RID: 5893
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4001705")]
|
|
[Range(0f, 1f)]
|
|
public float threshold;
|
|
}
|
|
}
|