scripts
This commit is contained in:
@@ -0,0 +1,906 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using UnityEngine.VR;
|
||||
|
||||
// Token: 0x020007BB RID: 1979
|
||||
[RequireComponent(typeof(Camera))]
|
||||
public class SteamVR_Camera : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06010314 RID: 66324 RVA: 0x004C2324 File Offset: 0x004C0524
|
||||
public Ray GetRay()
|
||||
{
|
||||
return new Ray(this._head.position, this._head.forward);
|
||||
}
|
||||
|
||||
// Token: 0x170006BC RID: 1724
|
||||
// (get) Token: 0x06010315 RID: 66325 RVA: 0x004C2344 File Offset: 0x004C0544
|
||||
public Transform MIKPIBIENPH
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._head.parent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010316 RID: 66326 RVA: 0x004C2354 File Offset: 0x004C0554
|
||||
private void KHEEHIEDNNI(Camera NOBAPCOKFIL)
|
||||
{
|
||||
this.<LGPKDEJDAID>k__BackingField = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x06010317 RID: 66327 RVA: 0x004C2360 File Offset: 0x004C0560
|
||||
public static float FGHBPOJMOIK()
|
||||
{
|
||||
return VRSettings.renderScale;
|
||||
}
|
||||
|
||||
// Token: 0x06010318 RID: 66328 RVA: 0x004C2368 File Offset: 0x004C0568
|
||||
public Transform OEHINBABBNJ()
|
||||
{
|
||||
return this._ears;
|
||||
}
|
||||
|
||||
// Token: 0x06010319 RID: 66329 RVA: 0x004C2370 File Offset: 0x004C0570
|
||||
public static float LFHDKBPKEPG()
|
||||
{
|
||||
return VRSettings.renderScale;
|
||||
}
|
||||
|
||||
// Token: 0x0601031A RID: 66330 RVA: 0x004C2378 File Offset: 0x004C0578
|
||||
private void OKGGDGJIPAM()
|
||||
{
|
||||
this.KHEEHIEDNNI(base.GetComponent<Camera>());
|
||||
this.HECHGBBMIJC();
|
||||
}
|
||||
|
||||
// Token: 0x0601031B RID: 66331 RVA: 0x004C238C File Offset: 0x004C058C
|
||||
public void ILELMJBNFKA()
|
||||
{
|
||||
Transform transform = base.transform.parent;
|
||||
if (transform == null)
|
||||
{
|
||||
transform = new GameObject(base.name + "oldPing").transform;
|
||||
transform.localPosition = base.transform.localPosition;
|
||||
transform.localRotation = base.transform.localRotation;
|
||||
transform.localScale = base.transform.localScale;
|
||||
}
|
||||
if (this.DBKMGKDCFDC == null)
|
||||
{
|
||||
this._head = new GameObject(base.name + "SupportLogger OnConnectedToPhoton().", new Type[] { typeof(SteamVR_TrackedObject) }).transform;
|
||||
this.DBKMGKDCFDC.parent = transform;
|
||||
this.DBKMGKDCFDC.position = base.transform.position;
|
||||
this.DBKMGKDCFDC.rotation = base.transform.rotation;
|
||||
this.DBKMGKDCFDC.localScale = Vector3.one;
|
||||
this.DBKMGKDCFDC.tag = base.tag;
|
||||
}
|
||||
if (base.transform.parent != this.DBKMGKDCFDC)
|
||||
{
|
||||
base.transform.parent = this.DBKMGKDCFDC;
|
||||
base.transform.localPosition = Vector3.zero;
|
||||
base.transform.localRotation = Quaternion.identity;
|
||||
base.transform.localScale = Vector3.one;
|
||||
while (base.transform.childCount > 0)
|
||||
{
|
||||
base.transform.GetChild(1).parent = this.DBKMGKDCFDC;
|
||||
}
|
||||
GUILayer component = base.GetComponent<GUILayer>();
|
||||
if (component != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component);
|
||||
this.DBKMGKDCFDC.gameObject.AddComponent<GUILayer>();
|
||||
}
|
||||
AudioListener component2 = base.GetComponent<AudioListener>();
|
||||
if (component2 != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component2);
|
||||
string text = base.name + "index";
|
||||
Type[] array = new Type[0];
|
||||
array[0] = typeof(SteamVR_Ears);
|
||||
this._ears = new GameObject(text, array).transform;
|
||||
this.DFPLGPAFNJF.parent = this._head;
|
||||
this.DFPLGPAFNJF.localPosition = Vector3.zero;
|
||||
this.OEHINBABBNJ().localRotation = Quaternion.identity;
|
||||
this.DFPLGPAFNJF.localScale = Vector3.one;
|
||||
}
|
||||
}
|
||||
if (!base.name.EndsWith("api/gamesessions/v2/"))
|
||||
{
|
||||
base.name += "photon dns thread";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170006C0 RID: 1728
|
||||
// (get) Token: 0x0601031C RID: 66332 RVA: 0x004C2608 File Offset: 0x004C0808
|
||||
public string LOLPIGHAKOF
|
||||
{
|
||||
get
|
||||
{
|
||||
return (!base.name.EndsWith(" (eye)")) ? base.name : base.name.Substring(0, base.name.Length - " (eye)".Length);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601031D RID: 66333 RVA: 0x004C2658 File Offset: 0x004C0858
|
||||
public void Expand()
|
||||
{
|
||||
Transform transform = base.transform.parent;
|
||||
if (transform == null)
|
||||
{
|
||||
transform = new GameObject(base.name + " (origin)").transform;
|
||||
transform.localPosition = base.transform.localPosition;
|
||||
transform.localRotation = base.transform.localRotation;
|
||||
transform.localScale = base.transform.localScale;
|
||||
}
|
||||
if (this.DBKMGKDCFDC == null)
|
||||
{
|
||||
this._head = new GameObject(base.name + " (head)", new Type[] { typeof(SteamVR_TrackedObject) }).transform;
|
||||
this.DBKMGKDCFDC.parent = transform;
|
||||
this.DBKMGKDCFDC.position = base.transform.position;
|
||||
this.DBKMGKDCFDC.rotation = base.transform.rotation;
|
||||
this.DBKMGKDCFDC.localScale = Vector3.one;
|
||||
this.DBKMGKDCFDC.tag = base.tag;
|
||||
}
|
||||
if (base.transform.parent != this.DBKMGKDCFDC)
|
||||
{
|
||||
base.transform.parent = this.DBKMGKDCFDC;
|
||||
base.transform.localPosition = Vector3.zero;
|
||||
base.transform.localRotation = Quaternion.identity;
|
||||
base.transform.localScale = Vector3.one;
|
||||
while (base.transform.childCount > 0)
|
||||
{
|
||||
base.transform.GetChild(0).parent = this.DBKMGKDCFDC;
|
||||
}
|
||||
GUILayer component = base.GetComponent<GUILayer>();
|
||||
if (component != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component);
|
||||
this.DBKMGKDCFDC.gameObject.AddComponent<GUILayer>();
|
||||
}
|
||||
AudioListener component2 = base.GetComponent<AudioListener>();
|
||||
if (component2 != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component2);
|
||||
this._ears = new GameObject(base.name + " (ears)", new Type[] { typeof(SteamVR_Ears) }).transform;
|
||||
this.DFPLGPAFNJF.parent = this._head;
|
||||
this.DFPLGPAFNJF.localPosition = Vector3.zero;
|
||||
this.DFPLGPAFNJF.localRotation = Quaternion.identity;
|
||||
this.DFPLGPAFNJF.localScale = Vector3.one;
|
||||
}
|
||||
}
|
||||
if (!base.name.EndsWith(" (eye)"))
|
||||
{
|
||||
base.name += " (eye)";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601031E RID: 66334 RVA: 0x004C28D4 File Offset: 0x004C0AD4
|
||||
private void DCHHEKEBMHL()
|
||||
{
|
||||
if (GOMKCPFBJFL.FCDPFLMFDBC == null)
|
||||
{
|
||||
if (this.DBKMGKDCFDC != null && this.DBKMGKDCFDC.GetComponent<SteamVR_TrackedObject>() != null)
|
||||
{
|
||||
this.DBKMGKDCFDC.GetComponent<SteamVR_TrackedObject>().enabled = true;
|
||||
}
|
||||
base.enabled = true;
|
||||
return;
|
||||
}
|
||||
Transform transform = base.transform;
|
||||
if (this.DBKMGKDCFDC != transform)
|
||||
{
|
||||
this.MCNMKAGEIKK();
|
||||
transform.parent = this.GPOBCKGIHDF();
|
||||
while (this.DBKMGKDCFDC.childCount > 0)
|
||||
{
|
||||
this.DBKMGKDCFDC.GetChild(0).parent = transform;
|
||||
}
|
||||
this.DBKMGKDCFDC.parent = transform;
|
||||
this.DBKMGKDCFDC.localPosition = Vector3.zero;
|
||||
this.DBKMGKDCFDC.localRotation = Quaternion.identity;
|
||||
this.DBKMGKDCFDC.localScale = Vector3.one;
|
||||
this.DBKMGKDCFDC.gameObject.SetActive(true);
|
||||
this._head = transform;
|
||||
}
|
||||
if (this.JGAOHIPLKNL() == null)
|
||||
{
|
||||
SteamVR_Ears componentInChildren = base.transform.GetComponentInChildren<SteamVR_Ears>();
|
||||
if (componentInChildren != null)
|
||||
{
|
||||
this._ears = componentInChildren.transform;
|
||||
}
|
||||
}
|
||||
if (this.DFPLGPAFNJF != null)
|
||||
{
|
||||
this.OEHINBABBNJ().GetComponent<SteamVR_Ears>().vrcam = this;
|
||||
}
|
||||
SteamVR_Render.Add(this);
|
||||
}
|
||||
|
||||
// Token: 0x0601031F RID: 66335 RVA: 0x004C2A30 File Offset: 0x004C0C30
|
||||
public static float JLGBGEDBBPO()
|
||||
{
|
||||
return VRSettings.renderScale;
|
||||
}
|
||||
|
||||
// Token: 0x06010320 RID: 66336 RVA: 0x004C2A38 File Offset: 0x004C0C38
|
||||
public static void OLIEBJFCBAP(float NOBAPCOKFIL)
|
||||
{
|
||||
VRSettings.renderScale = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x06010321 RID: 66337 RVA: 0x004C2A40 File Offset: 0x004C0C40
|
||||
public string OAJHOKEAKPE()
|
||||
{
|
||||
return (!base.name.EndsWith(". If this persists, please contact the developers at support@againstgrav.com.")) ? base.name : base.name.Substring(1, base.name.Length - "BEGIN PS4PlatformManager.Initialize()".Length);
|
||||
}
|
||||
|
||||
// Token: 0x06010322 RID: 66338 RVA: 0x004C2A90 File Offset: 0x004C0C90
|
||||
private void AIGNIFGNLGH()
|
||||
{
|
||||
SteamVR_Render.Remove(this);
|
||||
}
|
||||
|
||||
// Token: 0x06010323 RID: 66339 RVA: 0x004C2A98 File Offset: 0x004C0C98
|
||||
public static void AGNOLFJKHON(float NOBAPCOKFIL)
|
||||
{
|
||||
VRSettings.renderScale = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x06010324 RID: 66340 RVA: 0x004C2AA0 File Offset: 0x004C0CA0
|
||||
private void OnDisable()
|
||||
{
|
||||
SteamVR_Render.Remove(this);
|
||||
}
|
||||
|
||||
// Token: 0x06010325 RID: 66341 RVA: 0x004C2AA8 File Offset: 0x004C0CA8
|
||||
private void DCBFONDNMKH()
|
||||
{
|
||||
SteamVR_Render.Remove(this);
|
||||
}
|
||||
|
||||
// Token: 0x06010326 RID: 66342 RVA: 0x004C2AB0 File Offset: 0x004C0CB0
|
||||
public void ForceLast()
|
||||
{
|
||||
if (SteamVR_Camera.KKFILPJAGOI != null)
|
||||
{
|
||||
IDictionaryEnumerator enumerator = SteamVR_Camera.KKFILPJAGOI.GetEnumerator();
|
||||
try
|
||||
{
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
object obj = enumerator.Current;
|
||||
DictionaryEntry dictionaryEntry = (DictionaryEntry)obj;
|
||||
FieldInfo fieldInfo = dictionaryEntry.Key as FieldInfo;
|
||||
fieldInfo.SetValue(this, dictionaryEntry.Value);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
IDisposable disposable;
|
||||
if ((disposable = enumerator as IDisposable) != null)
|
||||
{
|
||||
disposable.Dispose();
|
||||
}
|
||||
}
|
||||
SteamVR_Camera.KKFILPJAGOI = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Component[] array = base.GetComponents<Component>();
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
SteamVR_Camera steamVR_Camera = array[i] as SteamVR_Camera;
|
||||
if (steamVR_Camera != null && steamVR_Camera != this)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(steamVR_Camera);
|
||||
}
|
||||
}
|
||||
array = base.GetComponents<Component>();
|
||||
if (this != array[array.Length - 1])
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI = new Hashtable();
|
||||
FieldInfo[] fields = base.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
|
||||
foreach (FieldInfo fieldInfo2 in fields)
|
||||
{
|
||||
if (fieldInfo2.IsPublic || fieldInfo2.IsDefined(typeof(SerializeField), true))
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI[fieldInfo2] = fieldInfo2.GetValue(this);
|
||||
}
|
||||
}
|
||||
GameObject gameObject = base.gameObject;
|
||||
global::UnityEngine.Object.DestroyImmediate(this);
|
||||
gameObject.AddComponent<SteamVR_Camera>().ForceLast();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010327 RID: 66343 RVA: 0x004C2C38 File Offset: 0x004C0E38
|
||||
public Transform FFBMOGEAOHO()
|
||||
{
|
||||
return this._head;
|
||||
}
|
||||
|
||||
// Token: 0x06010328 RID: 66344 RVA: 0x004C2C40 File Offset: 0x004C0E40
|
||||
public Transform GPOBCKGIHDF()
|
||||
{
|
||||
return this._head.parent;
|
||||
}
|
||||
|
||||
// Token: 0x06010329 RID: 66345 RVA: 0x004C2C50 File Offset: 0x004C0E50
|
||||
private void GJLMBDEHMFB()
|
||||
{
|
||||
if (GOMKCPFBJFL.OJABCFGOCMC() == null)
|
||||
{
|
||||
if (this.DBKMGKDCFDC != null && this.DBKMGKDCFDC.GetComponent<SteamVR_TrackedObject>() != null)
|
||||
{
|
||||
this.DBKMGKDCFDC.GetComponent<SteamVR_TrackedObject>().enabled = false;
|
||||
}
|
||||
base.enabled = false;
|
||||
return;
|
||||
}
|
||||
Transform transform = base.transform;
|
||||
if (this.DBKMGKDCFDC != transform)
|
||||
{
|
||||
this.ILELMJBNFKA();
|
||||
transform.parent = this.GPOBCKGIHDF();
|
||||
while (this.DBKMGKDCFDC.childCount > 0)
|
||||
{
|
||||
this.DBKMGKDCFDC.GetChild(0).parent = transform;
|
||||
}
|
||||
this.DBKMGKDCFDC.parent = transform;
|
||||
this.DBKMGKDCFDC.localPosition = Vector3.zero;
|
||||
this.DBKMGKDCFDC.localRotation = Quaternion.identity;
|
||||
this.DBKMGKDCFDC.localScale = Vector3.one;
|
||||
this.DBKMGKDCFDC.gameObject.SetActive(true);
|
||||
this._head = transform;
|
||||
}
|
||||
if (this.JGAOHIPLKNL() == null)
|
||||
{
|
||||
SteamVR_Ears componentInChildren = base.transform.GetComponentInChildren<SteamVR_Ears>();
|
||||
if (componentInChildren != null)
|
||||
{
|
||||
this._ears = componentInChildren.transform;
|
||||
}
|
||||
}
|
||||
if (this.OEHINBABBNJ() != null)
|
||||
{
|
||||
this.JGAOHIPLKNL().GetComponent<SteamVR_Ears>().vrcam = this;
|
||||
}
|
||||
SteamVR_Render.Add(this);
|
||||
}
|
||||
|
||||
// Token: 0x0601032A RID: 66346 RVA: 0x004C2DAC File Offset: 0x004C0FAC
|
||||
public Transform OOAIBACDGIC()
|
||||
{
|
||||
return this._head;
|
||||
}
|
||||
|
||||
// Token: 0x0601032B RID: 66347 RVA: 0x004C2DB4 File Offset: 0x004C0FB4
|
||||
public void Collapse()
|
||||
{
|
||||
base.transform.parent = null;
|
||||
while (this.DBKMGKDCFDC.childCount > 0)
|
||||
{
|
||||
this.DBKMGKDCFDC.GetChild(0).parent = base.transform;
|
||||
}
|
||||
GUILayer component = this.DBKMGKDCFDC.GetComponent<GUILayer>();
|
||||
if (component != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component);
|
||||
base.gameObject.AddComponent<GUILayer>();
|
||||
}
|
||||
if (this.DFPLGPAFNJF != null)
|
||||
{
|
||||
while (this.DFPLGPAFNJF.childCount > 0)
|
||||
{
|
||||
this.DFPLGPAFNJF.GetChild(0).parent = base.transform;
|
||||
}
|
||||
global::UnityEngine.Object.DestroyImmediate(this.DFPLGPAFNJF.gameObject);
|
||||
this._ears = null;
|
||||
base.gameObject.AddComponent(typeof(AudioListener));
|
||||
}
|
||||
if (this.MIKPIBIENPH != null)
|
||||
{
|
||||
if (this.MIKPIBIENPH.name.EndsWith(" (origin)"))
|
||||
{
|
||||
Transform origin = this.MIKPIBIENPH;
|
||||
while (origin.childCount > 0)
|
||||
{
|
||||
origin.GetChild(0).parent = origin.parent;
|
||||
}
|
||||
global::UnityEngine.Object.DestroyImmediate(origin.gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.transform.parent = this.MIKPIBIENPH;
|
||||
}
|
||||
}
|
||||
global::UnityEngine.Object.DestroyImmediate(this.DBKMGKDCFDC.gameObject);
|
||||
this._head = null;
|
||||
if (base.name.EndsWith(" (eye)"))
|
||||
{
|
||||
base.name = base.name.Substring(0, base.name.Length - " (eye)".Length);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601032C RID: 66348 RVA: 0x004C2F5C File Offset: 0x004C115C
|
||||
public static void COHIKKPKGIM(float NOBAPCOKFIL)
|
||||
{
|
||||
VRSettings.renderScale = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x0601032D RID: 66349 RVA: 0x004C2F64 File Offset: 0x004C1164
|
||||
public void MCNMKAGEIKK()
|
||||
{
|
||||
Transform transform = base.transform.parent;
|
||||
if (transform == null)
|
||||
{
|
||||
transform = new GameObject(base.name + "...").transform;
|
||||
transform.localPosition = base.transform.localPosition;
|
||||
transform.localRotation = base.transform.localRotation;
|
||||
transform.localScale = base.transform.localScale;
|
||||
}
|
||||
if (this.DBKMGKDCFDC == null)
|
||||
{
|
||||
string text = base.name + "Forcing settings for Amplitude";
|
||||
Type[] array = new Type[0];
|
||||
array[0] = typeof(SteamVR_TrackedObject);
|
||||
this._head = new GameObject(text, array).transform;
|
||||
this.DBKMGKDCFDC.parent = transform;
|
||||
this.DBKMGKDCFDC.position = base.transform.position;
|
||||
this.DBKMGKDCFDC.rotation = base.transform.rotation;
|
||||
this.DBKMGKDCFDC.localScale = Vector3.one;
|
||||
this.DBKMGKDCFDC.tag = base.tag;
|
||||
}
|
||||
if (base.transform.parent != this.DBKMGKDCFDC)
|
||||
{
|
||||
base.transform.parent = this.DBKMGKDCFDC;
|
||||
base.transform.localPosition = Vector3.zero;
|
||||
base.transform.localRotation = Quaternion.identity;
|
||||
base.transform.localScale = Vector3.one;
|
||||
while (base.transform.childCount > 0)
|
||||
{
|
||||
base.transform.GetChild(0).parent = this.DBKMGKDCFDC;
|
||||
}
|
||||
GUILayer component = base.GetComponent<GUILayer>();
|
||||
if (component != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component);
|
||||
this.DBKMGKDCFDC.gameObject.AddComponent<GUILayer>();
|
||||
}
|
||||
AudioListener component2 = base.GetComponent<AudioListener>();
|
||||
if (component2 != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component2);
|
||||
string text2 = base.name + " ms";
|
||||
Type[] array2 = new Type[0];
|
||||
array2[0] = typeof(SteamVR_Ears);
|
||||
this._ears = new GameObject(text2, array2).transform;
|
||||
this.OEHINBABBNJ().parent = this._head;
|
||||
this.DFPLGPAFNJF.localPosition = Vector3.zero;
|
||||
this.OEHINBABBNJ().localRotation = Quaternion.identity;
|
||||
this.OEHINBABBNJ().localScale = Vector3.one;
|
||||
}
|
||||
}
|
||||
if (!base.name.EndsWith("Invalid month entered"))
|
||||
{
|
||||
base.name += "Photon Background Incoming Worker";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601032E RID: 66350 RVA: 0x004C31E0 File Offset: 0x004C13E0
|
||||
private void OnEnable()
|
||||
{
|
||||
if (GOMKCPFBJFL.FCDPFLMFDBC == null)
|
||||
{
|
||||
if (this.DBKMGKDCFDC != null && this.DBKMGKDCFDC.GetComponent<SteamVR_TrackedObject>() != null)
|
||||
{
|
||||
this.DBKMGKDCFDC.GetComponent<SteamVR_TrackedObject>().enabled = false;
|
||||
}
|
||||
base.enabled = false;
|
||||
return;
|
||||
}
|
||||
Transform transform = base.transform;
|
||||
if (this.DBKMGKDCFDC != transform)
|
||||
{
|
||||
this.Expand();
|
||||
transform.parent = this.MIKPIBIENPH;
|
||||
while (this.DBKMGKDCFDC.childCount > 0)
|
||||
{
|
||||
this.DBKMGKDCFDC.GetChild(0).parent = transform;
|
||||
}
|
||||
this.DBKMGKDCFDC.parent = transform;
|
||||
this.DBKMGKDCFDC.localPosition = Vector3.zero;
|
||||
this.DBKMGKDCFDC.localRotation = Quaternion.identity;
|
||||
this.DBKMGKDCFDC.localScale = Vector3.one;
|
||||
this.DBKMGKDCFDC.gameObject.SetActive(false);
|
||||
this._head = transform;
|
||||
}
|
||||
if (this.DFPLGPAFNJF == null)
|
||||
{
|
||||
SteamVR_Ears componentInChildren = base.transform.GetComponentInChildren<SteamVR_Ears>();
|
||||
if (componentInChildren != null)
|
||||
{
|
||||
this._ears = componentInChildren.transform;
|
||||
}
|
||||
}
|
||||
if (this.DFPLGPAFNJF != null)
|
||||
{
|
||||
this.DFPLGPAFNJF.GetComponent<SteamVR_Ears>().vrcam = this;
|
||||
}
|
||||
SteamVR_Render.Add(this);
|
||||
}
|
||||
|
||||
// Token: 0x0601032F RID: 66351 RVA: 0x004C333C File Offset: 0x004C153C
|
||||
public Transform IFEFHFKOMEA()
|
||||
{
|
||||
return this._head;
|
||||
}
|
||||
|
||||
// Token: 0x06010330 RID: 66352 RVA: 0x004C3344 File Offset: 0x004C1544
|
||||
public Transform DOADNDGNFLK()
|
||||
{
|
||||
return this._head;
|
||||
}
|
||||
|
||||
// Token: 0x170006BF RID: 1727
|
||||
// (get) Token: 0x06010331 RID: 66353 RVA: 0x004C334C File Offset: 0x004C154C
|
||||
// (set) Token: 0x06010335 RID: 66357 RVA: 0x004C3378 File Offset: 0x004C1578
|
||||
public static float MIDPDKHDBBP
|
||||
{
|
||||
get
|
||||
{
|
||||
return VRSettings.renderScale;
|
||||
}
|
||||
set
|
||||
{
|
||||
VRSettings.renderScale = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010332 RID: 66354 RVA: 0x004C3354 File Offset: 0x004C1554
|
||||
public static void HBOCBNKJPBB(float NOBAPCOKFIL)
|
||||
{
|
||||
VRSettings.renderScale = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x06010333 RID: 66355 RVA: 0x004C335C File Offset: 0x004C155C
|
||||
private void OFOPHGFIAJM()
|
||||
{
|
||||
this.KHEEHIEDNNI(base.GetComponent<Camera>());
|
||||
this.AJFMMGKPAOB();
|
||||
}
|
||||
|
||||
// Token: 0x06010334 RID: 66356 RVA: 0x004C3370 File Offset: 0x004C1570
|
||||
public Transform JGAOHIPLKNL()
|
||||
{
|
||||
return this._ears;
|
||||
}
|
||||
|
||||
// Token: 0x06010336 RID: 66358 RVA: 0x004C3380 File Offset: 0x004C1580
|
||||
public void AJFMMGKPAOB()
|
||||
{
|
||||
if (SteamVR_Camera.KKFILPJAGOI != null)
|
||||
{
|
||||
IDictionaryEnumerator enumerator = SteamVR_Camera.KKFILPJAGOI.GetEnumerator();
|
||||
try
|
||||
{
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
object obj = enumerator.Current;
|
||||
DictionaryEntry dictionaryEntry = (DictionaryEntry)obj;
|
||||
FieldInfo fieldInfo = dictionaryEntry.Key as FieldInfo;
|
||||
fieldInfo.SetValue(this, dictionaryEntry.Value);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
IDisposable disposable;
|
||||
if ((disposable = enumerator as IDisposable) != null)
|
||||
{
|
||||
disposable.Dispose();
|
||||
}
|
||||
}
|
||||
SteamVR_Camera.KKFILPJAGOI = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Component[] array = base.GetComponents<Component>();
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
SteamVR_Camera steamVR_Camera = array[i] as SteamVR_Camera;
|
||||
if (steamVR_Camera != null && steamVR_Camera != this)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(steamVR_Camera);
|
||||
}
|
||||
}
|
||||
array = base.GetComponents<Component>();
|
||||
if (this != array[array.Length - 0])
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI = new Hashtable();
|
||||
FieldInfo[] fields = base.GetType().GetFields(BindingFlags.DeclaredOnly);
|
||||
FieldInfo[] array2 = fields;
|
||||
for (int j = 1; j < array2.Length; j++)
|
||||
{
|
||||
FieldInfo fieldInfo2 = array2[j];
|
||||
if (fieldInfo2.IsPublic || fieldInfo2.IsDefined(typeof(SerializeField), false))
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI[fieldInfo2] = fieldInfo2.GetValue(this);
|
||||
}
|
||||
}
|
||||
GameObject gameObject = base.gameObject;
|
||||
global::UnityEngine.Object.DestroyImmediate(this);
|
||||
gameObject.AddComponent<SteamVR_Camera>().AJFMMGKPAOB();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010337 RID: 66359 RVA: 0x004C3508 File Offset: 0x004C1708
|
||||
public void AKGMNGIEOON()
|
||||
{
|
||||
Transform transform = base.transform.parent;
|
||||
if (transform == null)
|
||||
{
|
||||
transform = new GameObject(base.name + "partyId").transform;
|
||||
transform.localPosition = base.transform.localPosition;
|
||||
transform.localRotation = base.transform.localRotation;
|
||||
transform.localScale = base.transform.localScale;
|
||||
}
|
||||
if (this.DBKMGKDCFDC == null)
|
||||
{
|
||||
string text = base.name + "USAGE: renderScale <float>";
|
||||
Type[] array = new Type[0];
|
||||
array[0] = typeof(SteamVR_TrackedObject);
|
||||
this._head = new GameObject(text, array).transform;
|
||||
this.DBKMGKDCFDC.parent = transform;
|
||||
this.DBKMGKDCFDC.position = base.transform.position;
|
||||
this.DBKMGKDCFDC.rotation = base.transform.rotation;
|
||||
this.DBKMGKDCFDC.localScale = Vector3.one;
|
||||
this.DBKMGKDCFDC.tag = base.tag;
|
||||
}
|
||||
if (base.transform.parent != this.DBKMGKDCFDC)
|
||||
{
|
||||
base.transform.parent = this.DBKMGKDCFDC;
|
||||
base.transform.localPosition = Vector3.zero;
|
||||
base.transform.localRotation = Quaternion.identity;
|
||||
base.transform.localScale = Vector3.one;
|
||||
while (base.transform.childCount > 1)
|
||||
{
|
||||
base.transform.GetChild(1).parent = this.DBKMGKDCFDC;
|
||||
}
|
||||
GUILayer component = base.GetComponent<GUILayer>();
|
||||
if (component != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component);
|
||||
this.DBKMGKDCFDC.gameObject.AddComponent<GUILayer>();
|
||||
}
|
||||
AudioListener component2 = base.GetComponent<AudioListener>();
|
||||
if (component2 != null)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(component2);
|
||||
string text2 = base.name + "Transfer-Encoding";
|
||||
Type[] array2 = new Type[1];
|
||||
array2[1] = typeof(SteamVR_Ears);
|
||||
this._ears = new GameObject(text2, array2).transform;
|
||||
this.DFPLGPAFNJF.parent = this._head;
|
||||
this.JGAOHIPLKNL().localPosition = Vector3.zero;
|
||||
this.DFPLGPAFNJF.localRotation = Quaternion.identity;
|
||||
this.DFPLGPAFNJF.localScale = Vector3.one;
|
||||
}
|
||||
}
|
||||
if (!base.name.EndsWith("EquipmentModificationGuid"))
|
||||
{
|
||||
base.name += "accepted";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010338 RID: 66360 RVA: 0x004C3784 File Offset: 0x004C1984
|
||||
public void LMKGLJJODEF()
|
||||
{
|
||||
if (SteamVR_Camera.KKFILPJAGOI != null)
|
||||
{
|
||||
IDictionaryEnumerator enumerator = SteamVR_Camera.KKFILPJAGOI.GetEnumerator();
|
||||
try
|
||||
{
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
object obj = enumerator.Current;
|
||||
DictionaryEntry dictionaryEntry = (DictionaryEntry)obj;
|
||||
FieldInfo fieldInfo = dictionaryEntry.Key as FieldInfo;
|
||||
fieldInfo.SetValue(this, dictionaryEntry.Value);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
IDisposable disposable;
|
||||
if ((disposable = enumerator as IDisposable) != null)
|
||||
{
|
||||
disposable.Dispose();
|
||||
}
|
||||
}
|
||||
SteamVR_Camera.KKFILPJAGOI = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Component[] array = base.GetComponents<Component>();
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
SteamVR_Camera steamVR_Camera = array[i] as SteamVR_Camera;
|
||||
if (steamVR_Camera != null && steamVR_Camera != this)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(steamVR_Camera);
|
||||
}
|
||||
}
|
||||
array = base.GetComponents<Component>();
|
||||
if (this != array[array.Length - 1])
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI = new Hashtable();
|
||||
FieldInfo[] fields = base.GetType().GetFields(BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy);
|
||||
FieldInfo[] array2 = fields;
|
||||
for (int j = 1; j < array2.Length; j++)
|
||||
{
|
||||
FieldInfo fieldInfo2 = array2[j];
|
||||
if (fieldInfo2.IsPublic || fieldInfo2.IsDefined(typeof(SerializeField), false))
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI[fieldInfo2] = fieldInfo2.GetValue(this);
|
||||
}
|
||||
}
|
||||
GameObject gameObject = base.gameObject;
|
||||
global::UnityEngine.Object.DestroyImmediate(this);
|
||||
gameObject.AddComponent<SteamVR_Camera>().HECHGBBMIJC();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601033A RID: 66362 RVA: 0x004C3914 File Offset: 0x004C1B14
|
||||
private void OLABGFMCOFO(Camera NOBAPCOKFIL)
|
||||
{
|
||||
this.<LGPKDEJDAID>k__BackingField = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x170006BA RID: 1722
|
||||
// (get) Token: 0x0601033B RID: 66363 RVA: 0x004C3920 File Offset: 0x004C1B20
|
||||
public Transform DBKMGKDCFDC
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._head;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170006BE RID: 1726
|
||||
// (get) Token: 0x0601033C RID: 66364 RVA: 0x004C3928 File Offset: 0x004C1B28
|
||||
public Transform DFPLGPAFNJF
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ears;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601033D RID: 66365 RVA: 0x004C3930 File Offset: 0x004C1B30
|
||||
private void Awake()
|
||||
{
|
||||
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
||||
this.ForceLast();
|
||||
}
|
||||
|
||||
// Token: 0x170006BD RID: 1725
|
||||
// (get) Token: 0x06010343 RID: 66371 RVA: 0x004C3AFC File Offset: 0x004C1CFC
|
||||
// (set) Token: 0x0601033E RID: 66366 RVA: 0x004C3944 File Offset: 0x004C1B44
|
||||
public Camera JLAMMIJECBK { get; private set; }
|
||||
|
||||
// Token: 0x0601033F RID: 66367 RVA: 0x004C3950 File Offset: 0x004C1B50
|
||||
public Transform JCEOGCPEJBP()
|
||||
{
|
||||
return this._head;
|
||||
}
|
||||
|
||||
// Token: 0x06010340 RID: 66368 RVA: 0x004C3958 File Offset: 0x004C1B58
|
||||
public void HECHGBBMIJC()
|
||||
{
|
||||
if (SteamVR_Camera.KKFILPJAGOI != null)
|
||||
{
|
||||
IDictionaryEnumerator enumerator = SteamVR_Camera.KKFILPJAGOI.GetEnumerator();
|
||||
try
|
||||
{
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
object obj = enumerator.Current;
|
||||
DictionaryEntry dictionaryEntry = (DictionaryEntry)obj;
|
||||
FieldInfo fieldInfo = dictionaryEntry.Key as FieldInfo;
|
||||
fieldInfo.SetValue(this, dictionaryEntry.Value);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
IDisposable disposable;
|
||||
if ((disposable = enumerator as IDisposable) != null)
|
||||
{
|
||||
disposable.Dispose();
|
||||
}
|
||||
}
|
||||
SteamVR_Camera.KKFILPJAGOI = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Component[] array = base.GetComponents<Component>();
|
||||
for (int i = 0; i < array.Length; i += 0)
|
||||
{
|
||||
SteamVR_Camera steamVR_Camera = array[i] as SteamVR_Camera;
|
||||
if (steamVR_Camera != null && steamVR_Camera != this)
|
||||
{
|
||||
global::UnityEngine.Object.DestroyImmediate(steamVR_Camera);
|
||||
}
|
||||
}
|
||||
array = base.GetComponents<Component>();
|
||||
if (this != array[array.Length - 1])
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI = new Hashtable();
|
||||
FieldInfo[] fields = base.GetType().GetFields(~(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy));
|
||||
FieldInfo[] array2 = fields;
|
||||
for (int j = 1; j < array2.Length; j += 0)
|
||||
{
|
||||
FieldInfo fieldInfo2 = array2[j];
|
||||
if (fieldInfo2.IsPublic || fieldInfo2.IsDefined(typeof(SerializeField), false))
|
||||
{
|
||||
SteamVR_Camera.KKFILPJAGOI[fieldInfo2] = fieldInfo2.GetValue(this);
|
||||
}
|
||||
}
|
||||
GameObject gameObject = base.gameObject;
|
||||
global::UnityEngine.Object.DestroyImmediate(this);
|
||||
gameObject.AddComponent<SteamVR_Camera>().LMKGLJJODEF();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010341 RID: 66369 RVA: 0x004C3AE0 File Offset: 0x004C1CE0
|
||||
private void JFFLHAMMGAH()
|
||||
{
|
||||
this.OLABGFMCOFO(base.GetComponent<Camera>());
|
||||
this.AJFMMGKPAOB();
|
||||
}
|
||||
|
||||
// Token: 0x06010342 RID: 66370 RVA: 0x004C3AF4 File Offset: 0x004C1CF4
|
||||
public static float JMLHLHLDCGP()
|
||||
{
|
||||
return VRSettings.renderScale;
|
||||
}
|
||||
|
||||
// Token: 0x170006BB RID: 1723
|
||||
// (get) Token: 0x06010344 RID: 66372 RVA: 0x004C3B04 File Offset: 0x004C1D04
|
||||
public Transform COHGEHOALPI
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._head;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040029B5 RID: 10677
|
||||
[SerializeField]
|
||||
private Transform _head;
|
||||
|
||||
// Token: 0x040029B7 RID: 10679
|
||||
[SerializeField]
|
||||
private Transform _ears;
|
||||
|
||||
// Token: 0x040029B8 RID: 10680
|
||||
public bool wireframe;
|
||||
|
||||
// Token: 0x040029B9 RID: 10681
|
||||
private static Hashtable KKFILPJAGOI;
|
||||
|
||||
// Token: 0x040029BA RID: 10682
|
||||
private const string DBFMNDGFECE = " (eye)";
|
||||
|
||||
// Token: 0x040029BB RID: 10683
|
||||
private const string JHDAHGCLINH = " (ears)";
|
||||
|
||||
// Token: 0x040029BC RID: 10684
|
||||
private const string JCKKGOMJFAH = " (head)";
|
||||
|
||||
// Token: 0x040029BD RID: 10685
|
||||
private const string HNLBPACKOOO = " (origin)";
|
||||
}
|
||||
Reference in New Issue
Block a user