Files
2026-06-04 11:42:34 +02:00

356 lines
13 KiB
C#

using System;
using UnityEngine;
namespace ProBuilder2.Examples
{
// Token: 0x02001278 RID: 4728
public class CameraControls : MonoBehaviour
{
// Token: 0x06028EF1 RID: 167665 RVA: 0x00B61BAC File Offset: 0x00B5FDAC
private void NICOCLOFMEF()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF2 RID: 167666 RVA: 0x00B61BCC File Offset: 0x00B5FDCC
private void DEGNFLDBLGF()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF3 RID: 167667 RVA: 0x00B61BEC File Offset: 0x00B5FDEC
private void PINHMNLCHGK()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF4 RID: 167668 RVA: 0x00B61C0C File Offset: 0x00B5FE0C
private void CADNGEIOOKI()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 287f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("DetachObject ");
float num = -Input.GetAxis("UploadStream");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 1162f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("LAST_CARD_DESPAWN_TIME") != 1095f)
{
float axis2 = Input.GetAxis("Config");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1313f) * (this.zoomSpeed * 271f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1664f, 1296f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EF5 RID: 167669 RVA: 0x00B61DE0 File Offset: 0x00B5FFE0
private void LateUpdate()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 0f;
if (Input.GetMouseButton(0))
{
float axis = Input.GetAxis("Mouse X");
float num = -Input.GetAxis("Mouse Y");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 0f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("Mouse ScrollWheel") != 0f)
{
float axis2 = Input.GetAxis("Mouse ScrollWheel");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 40f) * (this.zoomSpeed * 1000f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 10f, 40f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EF6 RID: 167670 RVA: 0x00B61FB4 File Offset: 0x00B601B4
private void FAGOEHAGDIE()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF7 RID: 167671 RVA: 0x00B61FD4 File Offset: 0x00B601D4
private void PGELJEHELFN()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF8 RID: 167672 RVA: 0x00B61FF4 File Offset: 0x00B601F4
private void HDMMICGIKEF()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 1620f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("[PlayingCardGroup]");
float num = -Input.GetAxis("FFKNBJINNEI");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 14f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("z") != 1525f)
{
float axis2 = Input.GetAxis("OpJoinLobby()");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1130f) * (this.zoomSpeed * 218f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 803f, 272f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EF9 RID: 167673 RVA: 0x00B621C8 File Offset: 0x00B603C8
private void POEDAMONBNL()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EFB RID: 167675 RVA: 0x00B62228 File Offset: 0x00B60428
private void DHOGEDDFAJC()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 675f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("PHONABJLEAE");
float num = -Input.GetAxis("user_party_created");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 1256f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("Check your email") != 14f)
{
float axis2 = Input.GetAxis("lifeBar");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 863f) * (this.zoomSpeed * 308f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1494f, 1346f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EFC RID: 167676 RVA: 0x00B623FC File Offset: 0x00B605FC
private void Start()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EFD RID: 167677 RVA: 0x00B6241C File Offset: 0x00B6061C
private void FGCPHGJDALF()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EFE RID: 167678 RVA: 0x00B6243C File Offset: 0x00B6063C
private void FKCNPKHIFIF()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 1297f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("_ScreenTexDim");
float num = -Input.GetAxis("G");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 711f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("RpcOnScore") != 628f)
{
float axis2 = Input.GetAxis("Invalid name!");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 854f) * (this.zoomSpeed * 252f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1569f, 986f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EFF RID: 167679 RVA: 0x00B62610 File Offset: 0x00B60810
private void JDAHFIJBMCL()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 73f;
if (Input.GetMouseButton(0))
{
float axis = Input.GetAxis("Reason");
float num = -Input.GetAxis("Color: ");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 479f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("JsonData instance doesn't hold a string") != 1583f)
{
float axis2 = Input.GetAxis("teleport_marker_mesh");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1952f) * (this.zoomSpeed * 1150f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1369f, 503f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028F00 RID: 167680 RVA: 0x00B627E4 File Offset: 0x00B609E4
private void MOAAJAOGKEO()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028F01 RID: 167681 RVA: 0x00B62804 File Offset: 0x00B60A04
private void DCDFMJJNKGG()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 1835f;
if (Input.GetMouseButton(0))
{
float axis = Input.GetAxis("cl9kYXRhGBUgASgLMhUucmVjcm9vbS5Sb29tRG9vckRhdGFCE6oCEFJlY1Jv");
float num = -Input.GetAxis("Failed to spawn instance with ID {0} that has an empty prefab ID.");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 447f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis(". Getting a random one.") != 274f)
{
float axis2 = Input.GetAxis("Disgust");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1250f) * (this.zoomSpeed * 1056f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1825f, 1024f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028F02 RID: 167682 RVA: 0x00B629D8 File Offset: 0x00B60BD8
private void PAEIJLKEEGJ()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028F03 RID: 167683 RVA: 0x00B629F8 File Offset: 0x00B60BF8
private void JGOAIIIJNAI()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028F04 RID: 167684 RVA: 0x00B62A18 File Offset: 0x00B60C18
private void PGIPDKOKAHH()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 260f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("Unable to wrap the given object with JsonData");
float num = -Input.GetAxis("to");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 1191f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("type") != 678f)
{
float axis2 = Input.GetAxis("turn");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 981f) * (this.zoomSpeed * 1553f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 762f, 1451f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x0400654E RID: 25934
private const string LAOJIJIGFKI = "Mouse ScrollWheel";
// Token: 0x0400654F RID: 25935
private const string GJDACAIACHD = "Mouse X";
// Token: 0x04006550 RID: 25936
private const string IMGEDOENCKE = "Mouse Y";
// Token: 0x04006551 RID: 25937
private const float HKKAKJHIGIJ = 10f;
// Token: 0x04006552 RID: 25938
private const float HIAGLDBOPGB = 40f;
// Token: 0x04006553 RID: 25939
[Range(2f, 15f)]
public float orbitSpeed = 6f;
// Token: 0x04006554 RID: 25940
[Range(0.3f, 2f)]
public float zoomSpeed = 0.8f;
// Token: 0x04006555 RID: 25941
private float PFKMOBGLKNK;
// Token: 0x04006556 RID: 25942
public float idleRotation = 1f;
// Token: 0x04006557 RID: 25943
private Vector2 LOFHHECEDBB = new Vector2(0.8f, 0.2f);
}
}