scripts
This commit is contained in:
@@ -0,0 +1,1565 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Photon;
|
||||
using RecRoom.Persistence;
|
||||
using RecRoom.Protobuf;
|
||||
using RecRoom.Tools;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities.Toys
|
||||
{
|
||||
// Token: 0x02000E22 RID: 3618
|
||||
public class RCCarRemoteControl : global::Photon.MonoBehaviour, KKCDMFEHDHE, EDODNJKFIIN
|
||||
{
|
||||
// Token: 0x0601DA0C RID: 121356 RVA: 0x00812EB4 File Offset: 0x008110B4
|
||||
private void JOPKIMBMMOM(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.PLLMPAPABJC.NHDDPGADJPJ)
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Standard;
|
||||
if (this.GLOKHDLOECF && this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(false);
|
||||
this.OLJMBEMBJNE(this.defaultScreenMaterial);
|
||||
}
|
||||
}
|
||||
if (this.GLOKHDLOECF && SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.AddTool(this.controlledObject.BKDFLNGCINH, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA0D RID: 121357 RVA: 0x00812F5C File Offset: 0x0081115C
|
||||
public void AFNEBBFABKE(RemoteControllable NOBAPCOKFIL)
|
||||
{
|
||||
if (NOBAPCOKFIL == null)
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(NOBAPCOKFIL.HOPJELLOPNJ().HNPFGGAKNPI());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA0E RID: 121358 RVA: 0x00812F94 File Offset: 0x00811194
|
||||
public bool DFGHCGPCDAN()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA0F RID: 121359 RVA: 0x00812F98 File Offset: 0x00811198
|
||||
public void FDEJMNFICHE(Tool COMHEONOMBA)
|
||||
{
|
||||
this.JDHJKGLIICD(null);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA10 RID: 121360 RVA: 0x00812FA4 File Offset: 0x008111A4
|
||||
private void NCLFKGIAGNG(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.HJLLJOGHFJC().KIIDMBGACOB())
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.HANFGNDDNAM = (ControllerIO.KJJKAFNOLLL)4;
|
||||
if (this.IDPGBPFGKKJ())
|
||||
{
|
||||
if (!this.controlledObject.BHCCHBHNHCG && !this.controlledObject.BKDFLNGCINH.OHGPCMJMFGC)
|
||||
{
|
||||
this.controlledObject.HOPJELLOPNJ().TransferOwnership(this.BKDFLNGCINH.OBFJBLCABAB());
|
||||
}
|
||||
if (this.controlledObject.NAIDKPHGIJE != null && this.controlledObject.NAIDKPHGIJE.DOKDOBOIGMI() != RemoteFollowCamera.JFNOAJOFBPG.None)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(true);
|
||||
this.AOMHKHLGJKC(this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.GLOKHDLOECF)
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.AMJAOLCGLKP(this.controlledObject.BKDFLNGCINH);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA11 RID: 121361 RVA: 0x00813094 File Offset: 0x00811294
|
||||
private void HFKAJEPBNLC(bool NOBAPCOKFIL)
|
||||
{
|
||||
this.<LJHGLDDIHIK>k__BackingField = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA12 RID: 121362 RVA: 0x008130A0 File Offset: 0x008112A0
|
||||
public RemoteControllable BEDFNOFNHCD()
|
||||
{
|
||||
return this.controlledObject;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA13 RID: 121363 RVA: 0x008130A8 File Offset: 0x008112A8
|
||||
private void ICNEEDHJEAM(Material OOEDPEKINHG)
|
||||
{
|
||||
Material[] sharedMaterials = this.screenRenderer.sharedMaterials;
|
||||
sharedMaterials[this.screenMaterialIndex] = OOEDPEKINHG;
|
||||
this.screenRenderer.sharedMaterials = sharedMaterials;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA14 RID: 121364 RVA: 0x008130D8 File Offset: 0x008112D8
|
||||
public void AuthorityResetCar()
|
||||
{
|
||||
if (this.BKDFLNGCINH.BHCCHBHNHCG && this.GLOKHDLOECF && this.controlledObject.BHCCHBHNHCG)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.AuthorityResetToDefault(this.resetControlledObjectTransform.position, Quaternion.identity, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA15 RID: 121365 RVA: 0x00813134 File Offset: 0x00811334
|
||||
public void JCCHOGMCCEL()
|
||||
{
|
||||
if (this.OMCJMIIEBDL != Guid.Empty)
|
||||
{
|
||||
PersistenceView persistenceView;
|
||||
if (PersistenceView.AllViews.TryGetValue(this.OMCJMIIEBDL, out persistenceView))
|
||||
{
|
||||
RemoteControllable component = persistenceView.GetComponent<RemoteControllable>();
|
||||
if (component != null)
|
||||
{
|
||||
this.DIHLFLEHJKL(component);
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = "time";
|
||||
object[] array = new object[7];
|
||||
array[1] = base.gameObject;
|
||||
array[0] = persistenceView;
|
||||
Debug.LogErrorFormat(this, text, array);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string text2 = "_MirrorImage";
|
||||
object[] array2 = new object[] { null, base.gameObject };
|
||||
array2[0] = this.OMCJMIIEBDL;
|
||||
Debug.LogErrorFormat(this, text2, array2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA16 RID: 121366 RVA: 0x008131D8 File Offset: 0x008113D8
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC -= this.OABKDPCFECF;
|
||||
this.BKDFLNGCINH.POJHLEKILDI -= this.JOPKIMBMMOM;
|
||||
this.teamColorRenderer.LPCJJBBCIHC -= this.COHBNMNFHCE;
|
||||
if (this.controlledObject != null)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE -= this.OnCarReset;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA17 RID: 121367 RVA: 0x00813260 File Offset: 0x00811460
|
||||
private void CJDFMFPIFDB()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.PEEOPPGOPAP().IPFPJCPGENH && this.IDPGBPFGKKJ())
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA18 RID: 121368 RVA: 0x008132B8 File Offset: 0x008114B8
|
||||
private void MJEHPNFIMPP()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.MNBKHFMGKID().IPFPJCPGENH && this.BMKOBFILFOD())
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA19 RID: 121369 RVA: 0x00813310 File Offset: 0x00811510
|
||||
private void EKKGEDBDINH()
|
||||
{
|
||||
this.JEJFEKGCANF();
|
||||
this.FLPFBLBDFFN();
|
||||
if (this.screenButtonForwarder != null)
|
||||
{
|
||||
this.screenButtonForwarder.DLJLJBPKIEJ += this.LKDAMNAFADA;
|
||||
}
|
||||
if (this.leftResetButtonForwarder != null)
|
||||
{
|
||||
this.leftResetButtonForwarder.DLJLJBPKIEJ += this.IFKLJDDKDJL;
|
||||
}
|
||||
if (this.rightResetButtonForwarder != null)
|
||||
{
|
||||
this.rightResetButtonForwarder.DLJLJBPKIEJ += this.BBHNKIKFAIK;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000DB0 RID: 3504
|
||||
// (get) Token: 0x0601DA1A RID: 121370 RVA: 0x008133A4 File Offset: 0x008115A4
|
||||
public Tool BKDFLNGCINH
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._tool;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA1B RID: 121371 RVA: 0x008133AC File Offset: 0x008115AC
|
||||
private void GJKOCOPCFPG(Collider EGNBFLPNLNC)
|
||||
{
|
||||
this.DKJEEIOJIKJ(EGNBFLPNLNC, true);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA1C RID: 121372 RVA: 0x008133B8 File Offset: 0x008115B8
|
||||
public bool KNLGPEHNKFE()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA1D RID: 121373 RVA: 0x008133BC File Offset: 0x008115BC
|
||||
public bool HAKPLHMPCNO()
|
||||
{
|
||||
return this.<LJHGLDDIHIK>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA1E RID: 121374 RVA: 0x008133C4 File Offset: 0x008115C4
|
||||
private void GHOLILPBMPM()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.HPPGIHDFCHK().IPFPJCPGENH && this.HAKPLHMPCNO())
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA1F RID: 121375 RVA: 0x0081341C File Offset: 0x0081161C
|
||||
private void IKPKPKHCNDC(bool NOBAPCOKFIL)
|
||||
{
|
||||
this.<LJHGLDDIHIK>k__BackingField = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA20 RID: 121376 RVA: 0x00813428 File Offset: 0x00811628
|
||||
public void LGNGKGEOBPM(Tool COMHEONOMBA, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
||||
{
|
||||
if (this.GLOKHDLOECF && this.controlledObject.DGLKKANNBPD() && MDMECJBCECO)
|
||||
{
|
||||
this.controlledObject.transform.position = this.resetControlledObjectTransform.position;
|
||||
this.controlledObject.transform.rotation = Quaternion.identity;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA21 RID: 121377 RVA: 0x00813488 File Offset: 0x00811688
|
||||
private void CFCNLLHGHJB(Collider GGGBDENGHFM, bool EIBIKILNFKN)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.DFJFKOLLEMK() && Time.time > this.EFKPEJILCDE)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF)
|
||||
{
|
||||
this.EFKPEJILCDE = Time.time + 843f;
|
||||
this.EDOOENLHMKB();
|
||||
if (EIBIKILNFKN)
|
||||
{
|
||||
this.rcAnimation.PressLeftVirtualButton();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rcAnimation.FJEAHFHBGGG();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA22 RID: 121378 RVA: 0x00813528 File Offset: 0x00811728
|
||||
private void LGLJMEBFLDH()
|
||||
{
|
||||
this.NGNOJKOHGPM();
|
||||
this.PIIIPLLACOE();
|
||||
if (this.screenButtonForwarder != null)
|
||||
{
|
||||
this.screenButtonForwarder.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.GJBHIPHHCEH));
|
||||
}
|
||||
if (this.leftResetButtonForwarder != null)
|
||||
{
|
||||
this.leftResetButtonForwarder.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.IFKLJDDKDJL));
|
||||
}
|
||||
if (this.rightResetButtonForwarder != null)
|
||||
{
|
||||
this.rightResetButtonForwarder.DLJLJBPKIEJ += this.GJKOCOPCFPG;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA23 RID: 121379 RVA: 0x008135BC File Offset: 0x008117BC
|
||||
public void OnCarDestroyed(Tool COMHEONOMBA)
|
||||
{
|
||||
this.IMPMFCEBEFK = null;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA24 RID: 121380 RVA: 0x008135C8 File Offset: 0x008117C8
|
||||
public void SerializeTo(ref JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.EPNJEMDPKIC != null)
|
||||
{
|
||||
Debug.LogErrorFormat(this, "Error serializing RCCarRemoteControl {0}: Data already specified.", new object[] { base.gameObject });
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.EPNJEMDPKIC = new EPNJEMDPKIC();
|
||||
if (this.GLOKHDLOECF)
|
||||
{
|
||||
PersistenceView component = this.controlledObject.GetComponent<PersistenceView>();
|
||||
if (component == null)
|
||||
{
|
||||
Debug.LogFormat(this, "Serializing RCCarRemoteControl {0}: Controlled PhotonView {1} has no corresponding PersistenceView.", new object[]
|
||||
{
|
||||
base.gameObject,
|
||||
this.controlledObject.gameObject
|
||||
});
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.EPNJEMDPKIC.LMJMGLDDIEO = component.PKJFPDJKJAH.MDOELPMBEGJ();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA25 RID: 121381 RVA: 0x0081366C File Offset: 0x0081186C
|
||||
private void ANPJOCANEBJ(Collider GGGBDENGHFM, bool EIBIKILNFKN)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.BHCCHBHNHCG && Time.time > this.EFKPEJILCDE)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF)
|
||||
{
|
||||
this.EFKPEJILCDE = Time.time + 264f;
|
||||
this.AuthorityResetCar();
|
||||
if (EIBIKILNFKN)
|
||||
{
|
||||
this.rcAnimation.HHDEEJENDCD();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rcAnimation.JNMAPEPLJNB();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA26 RID: 121382 RVA: 0x0081370C File Offset: 0x0081190C
|
||||
private void PDEDGHAIKDC(bool NOBAPCOKFIL)
|
||||
{
|
||||
this.<LJHGLDDIHIK>k__BackingField = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA27 RID: 121383 RVA: 0x00813718 File Offset: 0x00811918
|
||||
public void CGHMEBAHMNK(Tool COMHEONOMBA)
|
||||
{
|
||||
this.BLKGNFAJEON(null);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA28 RID: 121384 RVA: 0x00813724 File Offset: 0x00811924
|
||||
private void FJDPODLBOPE(Collider GGGBDENGHFM, bool EIBIKILNFKN)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.JNOCCMDBMIO() && Time.time > this.EFKPEJILCDE)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF)
|
||||
{
|
||||
this.EFKPEJILCDE = Time.time + 592f;
|
||||
this.EDOOENLHMKB();
|
||||
if (EIBIKILNFKN)
|
||||
{
|
||||
this.rcAnimation.GMKCMFIIFAG();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rcAnimation.JNMAPEPLJNB();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA29 RID: 121385 RVA: 0x008137C4 File Offset: 0x008119C4
|
||||
public bool FCMFIHPHNJG()
|
||||
{
|
||||
return this.<LJHGLDDIHIK>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x17000DB3 RID: 3507
|
||||
// (get) Token: 0x0601DA2A RID: 121386 RVA: 0x008137CC File Offset: 0x008119CC
|
||||
public bool AADHHMOLEOL
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA2B RID: 121387 RVA: 0x008137D0 File Offset: 0x008119D0
|
||||
private void GFNNLKHHPFC(Collider EGNBFLPNLNC)
|
||||
{
|
||||
this.ANPJOCANEBJ(EGNBFLPNLNC, true);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA2C RID: 121388 RVA: 0x008137DC File Offset: 0x008119DC
|
||||
protected virtual void GPCBKBNAGHN()
|
||||
{
|
||||
base.MICFHMAIGIB();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, "S{0}.{1}", -1, (IKCAJLLAFML)7, new Action(this.PIIIPLLACOE));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.EAPDKIPJPKM;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.FLNOKIPCGHO;
|
||||
this.teamColorRenderer.MADEPONMILB(new Action(this.MNEBNJLCACP));
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, -78);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 0) ? 1 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA2D RID: 121389 RVA: 0x008138BC File Offset: 0x00811ABC
|
||||
public void BLKGNFAJEON(RemoteControllable NOBAPCOKFIL)
|
||||
{
|
||||
if (NOBAPCOKFIL == null)
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(NOBAPCOKFIL.LHEPJEHMAEC().NBAIABPNLNK());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA2E RID: 121390 RVA: 0x008138F4 File Offset: 0x00811AF4
|
||||
private void JCDJNJAIEJC()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.PHGPEEKLIMJ().IPFPJCPGENH && this.NDBHJIEBMHJ())
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA2F RID: 121391 RVA: 0x0081394C File Offset: 0x00811B4C
|
||||
public bool HLKJLFEGCHM()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x17000DB1 RID: 3505
|
||||
// (get) Token: 0x0601DA30 RID: 121392 RVA: 0x00813950 File Offset: 0x00811B50
|
||||
// (set) Token: 0x0601DA57 RID: 121431 RVA: 0x00814860 File Offset: 0x00812A60
|
||||
public RemoteControllable IMPMFCEBEFK
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.controlledObject;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(value.OMNGGJICBBI.ADMBCINHJOG);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA31 RID: 121393 RVA: 0x00813958 File Offset: 0x00811B58
|
||||
public void PostDeserialize()
|
||||
{
|
||||
if (this.OMCJMIIEBDL != Guid.Empty)
|
||||
{
|
||||
PersistenceView persistenceView;
|
||||
if (PersistenceView.AllViews.TryGetValue(this.OMCJMIIEBDL, out persistenceView))
|
||||
{
|
||||
RemoteControllable component = persistenceView.GetComponent<RemoteControllable>();
|
||||
if (component != null)
|
||||
{
|
||||
this.IMPMFCEBEFK = component;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogErrorFormat(this, "Error deserializing RCCarRemoteControl {0}: Controlled object {1} is not a RemoteControllable.", new object[] { base.gameObject, persistenceView });
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogErrorFormat(this, "Error deserializing RCCarRemoteControl {0}: Could not find controllable PersistenceView with ID {1}.", new object[] { base.gameObject, this.OMCJMIIEBDL });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA32 RID: 121394 RVA: 0x008139FC File Offset: 0x00811BFC
|
||||
public void DIHLFLEHJKL(RemoteControllable NOBAPCOKFIL)
|
||||
{
|
||||
if (NOBAPCOKFIL == null)
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(NOBAPCOKFIL.ACEAACJNNAF().HNPFGGAKNPI());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA33 RID: 121395 RVA: 0x00813A34 File Offset: 0x00811C34
|
||||
private void LKDAMNAFADA(Collider GGGBDENGHFM)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.DGLOKLCEMLH() && this.NNAOMDOHLPL() != null && this.BEDFNOFNHCD().NAIDKPHGIJE != null && Time.time > this.FLKOPACLDMF)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF && playerHand.ANGJJOCHMEF)
|
||||
{
|
||||
this.FLKOPACLDMF = Time.time + 531f;
|
||||
RemoteFollowCamera.JFNOAJOFBPG jfnoajofbpg = this.IMPMFCEBEFK.NAIDKPHGIJE.CBKHMAJDJBI();
|
||||
bool flag = jfnoajofbpg != RemoteFollowCamera.JFNOAJOFBPG.None;
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(flag);
|
||||
this.AOMHKHLGJKC((!flag) ? this.defaultScreenMaterial : this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA34 RID: 121396 RVA: 0x00813B2C File Offset: 0x00811D2C
|
||||
private void JNOLNHLJKEM()
|
||||
{
|
||||
int num = this.APAKKLCFEFG.CPIBGJLHLBL();
|
||||
PhotonView photonView = PhotonView.KAKDEOHCKBM(num);
|
||||
RemoteControllable remoteControllable = ((!(photonView != null)) ? null : photonView.GetComponent<RemoteControllable>());
|
||||
if (this.controlledObject != null && this.controlledObject != remoteControllable)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE -= this.OnCarReset;
|
||||
}
|
||||
this.controlledObject = remoteControllable;
|
||||
if (this.controlledObject != null)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.MCCMCFBPLJC(new Tool.FKDCEJIOFAF(this.MILGPDJKIME));
|
||||
this.controlledObject.BKDFLNGCINH.DOFOEEDKAAF += this.IEIKHDIMKLC;
|
||||
if (this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.KMBHKBEGJOP().targetTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
this.GLOKHDLOECF = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.PDEDGHAIKDC(false);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA35 RID: 121397 RVA: 0x00813C38 File Offset: 0x00811E38
|
||||
private void MGNEIOBNCAK(Material OOEDPEKINHG)
|
||||
{
|
||||
Material[] sharedMaterials = this.screenRenderer.sharedMaterials;
|
||||
sharedMaterials[this.screenMaterialIndex] = OOEDPEKINHG;
|
||||
this.screenRenderer.sharedMaterials = sharedMaterials;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA36 RID: 121398 RVA: 0x00813C68 File Offset: 0x00811E68
|
||||
protected virtual void JFFLHAMMGAH()
|
||||
{
|
||||
base.MICFHMAIGIB();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, "dGlvbhgBIAEoCzIjLnJlY3Jvb20uU3ViRXh0cnVzaW9uRGF0YUNvbGxlY3Rp", -1, (IKCAJLLAFML)4, new Action(this.FLPFBLBDFFN));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.CNCIAOKCDDJ;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.AMMMLPOHOAO;
|
||||
this.teamColorRenderer.FIGLGGJIPAM(new Action(this.MNEBNJLCACP));
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, 2);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 1) ? 0 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA37 RID: 121399 RVA: 0x00813D48 File Offset: 0x00811F48
|
||||
private void CNCIAOKCDDJ(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.FFNAKFJPBOG().HCAKFOGPMEH())
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.JBKNLCIIKJK((ControllerIO.KJJKAFNOLLL)4);
|
||||
if (this.HAKPLHMPCNO())
|
||||
{
|
||||
if (!this.controlledObject.DGLKKANNBPD() && !this.controlledObject.BKDFLNGCINH.OHGPCMJMFGC)
|
||||
{
|
||||
this.controlledObject.CJKKPMHAMCN().NNOFBLMFKAH(this.BKDFLNGCINH.OELHCGECBEA());
|
||||
}
|
||||
if (this.controlledObject.NAIDKPHGIJE != null && this.controlledObject.NAIDKPHGIJE.KOEKNGFICON() != RemoteFollowCamera.JFNOAJOFBPG.None)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(true);
|
||||
this.ICNEEDHJEAM(this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.FCMFIHPHNJG())
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ICBPPEOBHBG(this.controlledObject.BKDFLNGCINH);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA38 RID: 121400 RVA: 0x00813E38 File Offset: 0x00812038
|
||||
public bool LEMEFJDACBD()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA39 RID: 121401 RVA: 0x00813E3C File Offset: 0x0081203C
|
||||
private void OPJLBOGKPPI()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.PEEOPPGOPAP().IPFPJCPGENH && this.HAKPLHMPCNO())
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA3A RID: 121402 RVA: 0x00813E94 File Offset: 0x00812094
|
||||
public void GEAMENLJIKN(Tool COMHEONOMBA)
|
||||
{
|
||||
this.IMPMFCEBEFK = null;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA3B RID: 121403 RVA: 0x00813EA0 File Offset: 0x008120A0
|
||||
private void Update()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.HKLENNJOICH.IPFPJCPGENH && this.GLOKHDLOECF)
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA3C RID: 121404 RVA: 0x00813EF8 File Offset: 0x008120F8
|
||||
public int BMGAPNFJEFN()
|
||||
{
|
||||
return 125;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA3D RID: 121405 RVA: 0x00813F00 File Offset: 0x00812100
|
||||
protected virtual void HNBLIGEOJOI()
|
||||
{
|
||||
base.MMEKGKHJECF();
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC -= this.COJHKFEKLND;
|
||||
this.BKDFLNGCINH.POJHLEKILDI -= this.FLNOKIPCGHO;
|
||||
this.teamColorRenderer.LPCJJBBCIHC -= this.MNEBNJLCACP;
|
||||
if (this.controlledObject != null)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE -= this.MILGPDJKIME;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA3E RID: 121406 RVA: 0x00813F88 File Offset: 0x00812188
|
||||
private void NGNOJKOHGPM()
|
||||
{
|
||||
if (this.IDPGBPFGKKJ() && this.controlledObject.GANDPDNCOKF())
|
||||
{
|
||||
this.controlledObject.OGOEEEJCBNA.HAPPDKOIBKA = this.teamColorRenderer.HAPPDKOIBKA;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA3F RID: 121407 RVA: 0x00813FC0 File Offset: 0x008121C0
|
||||
private void MEFGMDMICJB()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.HKLENNJOICH.IPFPJCPGENH && this.HAKPLHMPCNO())
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA40 RID: 121408 RVA: 0x00814018 File Offset: 0x00812218
|
||||
[CompilerGenerated]
|
||||
private void BBHNKIKFAIK(Collider EGNBFLPNLNC)
|
||||
{
|
||||
this.NIGMFOLGFHF(EGNBFLPNLNC, false);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA41 RID: 121409 RVA: 0x00814024 File Offset: 0x00812224
|
||||
public bool BMKOBFILFOD()
|
||||
{
|
||||
return this.<LJHGLDDIHIK>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA42 RID: 121410 RVA: 0x0081402C File Offset: 0x0081222C
|
||||
public void PEIOKDCOAHJ(JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.JGODHDHHEDN() == null)
|
||||
{
|
||||
string text = "published";
|
||||
object[] array = new object[0];
|
||||
array[0] = base.gameObject;
|
||||
Debug.LogErrorFormat(this, text, array);
|
||||
return;
|
||||
}
|
||||
this.OMCJMIIEBDL = LJPJGMJDIKB.EPNJEMDPKIC.GIDDOJKBKPI().KLNKHLCMIMD();
|
||||
}
|
||||
|
||||
// Token: 0x0601DA43 RID: 121411 RVA: 0x0081406C File Offset: 0x0081226C
|
||||
public bool NDBHJIEBMHJ()
|
||||
{
|
||||
return this.<LJHGLDDIHIK>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA44 RID: 121412 RVA: 0x00814074 File Offset: 0x00812274
|
||||
[CompilerGenerated]
|
||||
private void LFDBDMPMKEM(Collider EGNBFLPNLNC)
|
||||
{
|
||||
this.NIGMFOLGFHF(EGNBFLPNLNC, true);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA45 RID: 121413 RVA: 0x00814080 File Offset: 0x00812280
|
||||
public bool OKOIMJONOHB()
|
||||
{
|
||||
return this.<LJHGLDDIHIK>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA46 RID: 121414 RVA: 0x00814088 File Offset: 0x00812288
|
||||
private void LJICNBMGDMN()
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.PEEOPPGOPAP().IPFPJCPGENH && this.HILKCDOLAOC())
|
||||
{
|
||||
this.controlledObject.LocalUpdateRemoteControlInput(this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA47 RID: 121415 RVA: 0x008140E0 File Offset: 0x008122E0
|
||||
public void MILGPDJKIME(Tool COMHEONOMBA, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
||||
{
|
||||
if (this.HILKCDOLAOC() && this.controlledObject.DFJFKOLLEMK() && MDMECJBCECO)
|
||||
{
|
||||
this.controlledObject.transform.position = this.resetControlledObjectTransform.position;
|
||||
this.controlledObject.transform.rotation = Quaternion.identity;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA48 RID: 121416 RVA: 0x00814140 File Offset: 0x00812340
|
||||
public void LJINOGNKBIC(JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.JGODHDHHEDN() == null)
|
||||
{
|
||||
string text = "Failed to change game session name: ";
|
||||
object[] array = new object[0];
|
||||
array[1] = base.gameObject;
|
||||
Debug.LogErrorFormat(this, text, array);
|
||||
return;
|
||||
}
|
||||
this.OMCJMIIEBDL = LJPJGMJDIKB.JGODHDHHEDN().IMMGIKKNCKP().KLNKHLCMIMD();
|
||||
}
|
||||
|
||||
// Token: 0x0601DA49 RID: 121417 RVA: 0x00814180 File Offset: 0x00812380
|
||||
private void NIGMFOLGFHF(Collider GGGBDENGHFM, bool EIBIKILNFKN)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.BHCCHBHNHCG && Time.time > this.EFKPEJILCDE)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF)
|
||||
{
|
||||
this.EFKPEJILCDE = Time.time + 1f;
|
||||
this.AuthorityResetCar();
|
||||
if (EIBIKILNFKN)
|
||||
{
|
||||
this.rcAnimation.PressLeftVirtualButton();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rcAnimation.PressRightVirtualButton();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA4A RID: 121418 RVA: 0x00814220 File Offset: 0x00812420
|
||||
private void FLNOKIPCGHO(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.HJLLJOGHFJC().DHJNIEEFMGE())
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.AOGNBAHOOHM(ControllerIO.KJJKAFNOLLL.Standard);
|
||||
if (this.FCMFIHPHNJG() && this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(true);
|
||||
this.ICNEEDHJEAM(this.defaultScreenMaterial);
|
||||
}
|
||||
}
|
||||
if (this.OKOIMJONOHB() && SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.OKNGEKEIJBA(this.controlledObject.BKDFLNGCINH, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA4B RID: 121419 RVA: 0x008142C8 File Offset: 0x008124C8
|
||||
private void COJHKFEKLND(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.PLLMPAPABJC.NHDDPGADJPJ)
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.AOGNBAHOOHM(ControllerIO.KJJKAFNOLLL.RemoteControl);
|
||||
if (this.HILKCDOLAOC())
|
||||
{
|
||||
if (!this.controlledObject.BHCCHBHNHCG && !this.controlledObject.BKDFLNGCINH.OHGPCMJMFGC)
|
||||
{
|
||||
this.controlledObject.CEGDLFAENEJ().KBHKLBNAMID(this.BKDFLNGCINH.PHGPEEKLIMJ());
|
||||
}
|
||||
if (this.controlledObject.NAIDKPHGIJE != null && this.controlledObject.NAIDKPHGIJE.FCBKMKJBMGA() != RemoteFollowCamera.JFNOAJOFBPG.None)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(false);
|
||||
this.OLJMBEMBJNE(this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.HILKCDOLAOC())
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.HJFGPLBNNLM(this.controlledObject.BKDFLNGCINH);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA4C RID: 121420 RVA: 0x008143B8 File Offset: 0x008125B8
|
||||
public void LHOBFBLFMNJ(ref JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.EPNJEMDPKIC != null)
|
||||
{
|
||||
string text = "RpcMasterRequestScore";
|
||||
object[] array = new object[0];
|
||||
array[1] = base.gameObject;
|
||||
Debug.LogErrorFormat(this, text, array);
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.EPNJEMDPKIC = new EPNJEMDPKIC();
|
||||
if (this.IDPGBPFGKKJ())
|
||||
{
|
||||
PersistenceView component = this.controlledObject.GetComponent<PersistenceView>();
|
||||
if (component == null)
|
||||
{
|
||||
string text2 = "Not in any event";
|
||||
object[] array2 = new object[5];
|
||||
array2[1] = base.gameObject;
|
||||
array2[0] = this.controlledObject.gameObject;
|
||||
Debug.LogFormat(this, text2, array2);
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.JGODHDHHEDN().CHAKMAIGJNC(component.KPCECCCFGCL().MDOELPMBEGJ());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA4D RID: 121421 RVA: 0x0081445C File Offset: 0x0081265C
|
||||
public void DeserializeFrom(JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.EPNJEMDPKIC == null)
|
||||
{
|
||||
Debug.LogErrorFormat(this, "Error deserializing RCCarRemoteControl {0}: data empty.", new object[] { base.gameObject });
|
||||
return;
|
||||
}
|
||||
this.OMCJMIIEBDL = LJPJGMJDIKB.EPNJEMDPKIC.LMJMGLDDIEO.KLNKHLCMIMD();
|
||||
}
|
||||
|
||||
// Token: 0x0601DA4E RID: 121422 RVA: 0x0081449C File Offset: 0x0081269C
|
||||
private void MNEBNJLCACP()
|
||||
{
|
||||
if (this.BMKOBFILFOD() && this.controlledObject.JNOCCMDBMIO())
|
||||
{
|
||||
this.controlledObject.OGOEEEJCBNA.HAPPDKOIBKA = this.teamColorRenderer.HAPPDKOIBKA;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA4F RID: 121423 RVA: 0x008144D4 File Offset: 0x008126D4
|
||||
private void GJBHIPHHCEH(Collider GGGBDENGHFM)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.BHCCHBHNHCG && this.IMPMFCEBEFK != null && this.BEDFNOFNHCD().NAIDKPHGIJE != null && Time.time > this.FLKOPACLDMF)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF && playerHand.ANGJJOCHMEF)
|
||||
{
|
||||
this.FLKOPACLDMF = Time.time + 1674f;
|
||||
RemoteFollowCamera.JFNOAJOFBPG jfnoajofbpg = this.IMPMFCEBEFK.NAIDKPHGIJE.LCCPHNAGBPL();
|
||||
bool flag = jfnoajofbpg == RemoteFollowCamera.JFNOAJOFBPG.Default;
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(flag);
|
||||
this.AOMHKHLGJKC((!flag) ? this.defaultScreenMaterial : this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA50 RID: 121424 RVA: 0x008145CC File Offset: 0x008127CC
|
||||
private void IJCFCDJGNPK(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.PLLMPAPABJC.NHDDPGADJPJ)
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.AOGNBAHOOHM(ControllerIO.KJJKAFNOLLL.Calibration);
|
||||
if (this.HAKPLHMPCNO() && this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(false);
|
||||
this.OLJMBEMBJNE(this.defaultScreenMaterial);
|
||||
}
|
||||
}
|
||||
if (this.BMKOBFILFOD() && SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.LLGNGJHOCPF(this.controlledObject.BKDFLNGCINH, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA51 RID: 121425 RVA: 0x00814674 File Offset: 0x00812874
|
||||
private void COHBNMNFHCE()
|
||||
{
|
||||
if (this.GLOKHDLOECF && this.controlledObject.BHCCHBHNHCG)
|
||||
{
|
||||
this.controlledObject.OGOEEEJCBNA.HAPPDKOIBKA = this.teamColorRenderer.HAPPDKOIBKA;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA52 RID: 121426 RVA: 0x008146AC File Offset: 0x008128AC
|
||||
public void OnCarReset(Tool COMHEONOMBA, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
||||
{
|
||||
if (this.GLOKHDLOECF && this.controlledObject.BHCCHBHNHCG && MDMECJBCECO)
|
||||
{
|
||||
this.controlledObject.transform.position = this.resetControlledObjectTransform.position;
|
||||
this.controlledObject.transform.rotation = Quaternion.identity;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA53 RID: 121427 RVA: 0x0081470C File Offset: 0x0081290C
|
||||
protected virtual void HHGIHIJFDHL()
|
||||
{
|
||||
base.MPIHCILBGLM();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, " on ", -1, IKCAJLLAFML.MASTER_OR_AUTHORITY, new Action(this.FACHHMDMKAJ));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.NCLFKGIAGNG;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.IJCFCDJGNPK;
|
||||
this.teamColorRenderer.LPCJJBBCIHC += this.JEJFEKGCANF;
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, -109);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 1) ? 1 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA54 RID: 121428 RVA: 0x008147EC File Offset: 0x008129EC
|
||||
public void NPOFKLMAKPE(Tool COMHEONOMBA)
|
||||
{
|
||||
this.JDHJKGLIICD(null);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA55 RID: 121429 RVA: 0x008147F8 File Offset: 0x008129F8
|
||||
public void EDOOENLHMKB()
|
||||
{
|
||||
if (this.BKDFLNGCINH.JNOCCMDBMIO() && this.HAKPLHMPCNO() && this.controlledObject.GANDPDNCOKF())
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.AuthorityResetToDefault(this.resetControlledObjectTransform.position, Quaternion.identity, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA56 RID: 121430 RVA: 0x00814854 File Offset: 0x00812A54
|
||||
public void JGCOEAHIDAA(Tool COMHEONOMBA)
|
||||
{
|
||||
this.JDHJKGLIICD(null);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA58 RID: 121432 RVA: 0x00814898 File Offset: 0x00812A98
|
||||
public void JLPPKHFEKJP()
|
||||
{
|
||||
if (this.BKDFLNGCINH.DGLOKLCEMLH() && this.FCMFIHPHNJG() && this.controlledObject.IGIPCHFCFNN())
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.AuthorityResetToDefault(this.resetControlledObjectTransform.position, Quaternion.identity, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA59 RID: 121433 RVA: 0x008148F4 File Offset: 0x00812AF4
|
||||
private void IFKLJDDKDJL(Collider EGNBFLPNLNC)
|
||||
{
|
||||
this.DKJEEIOJIKJ(EGNBFLPNLNC, false);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA5A RID: 121434 RVA: 0x00814900 File Offset: 0x00812B00
|
||||
public void JDHJKGLIICD(RemoteControllable NOBAPCOKFIL)
|
||||
{
|
||||
if (NOBAPCOKFIL == null)
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.APAKKLCFEFG.MEAINJPIECA(NOBAPCOKFIL.LHEPJEHMAEC().ADMBCINHJOG);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA5B RID: 121435 RVA: 0x00814938 File Offset: 0x00812B38
|
||||
public void LBCIKICACBO(ref JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.EPNJEMDPKIC != null)
|
||||
{
|
||||
Debug.LogErrorFormat(this, "{0}v1/{1}", new object[] { base.gameObject });
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.EPNJEMDPKIC = new EPNJEMDPKIC();
|
||||
if (this.HILKCDOLAOC())
|
||||
{
|
||||
PersistenceView component = this.controlledObject.GetComponent<PersistenceView>();
|
||||
if (component == null)
|
||||
{
|
||||
string text = "position";
|
||||
object[] array = new object[8];
|
||||
array[0] = base.gameObject;
|
||||
array[1] = this.controlledObject.gameObject;
|
||||
Debug.LogFormat(this, text, array);
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.EPNJEMDPKIC.HHKBDBPDBBN(component.KCPBFNPGPNO().MDOELPMBEGJ());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA5C RID: 121436 RVA: 0x008149DC File Offset: 0x00812BDC
|
||||
private void OLJMBEMBJNE(Material OOEDPEKINHG)
|
||||
{
|
||||
Material[] sharedMaterials = this.screenRenderer.sharedMaterials;
|
||||
sharedMaterials[this.screenMaterialIndex] = OOEDPEKINHG;
|
||||
this.screenRenderer.sharedMaterials = sharedMaterials;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA5D RID: 121437 RVA: 0x00814A0C File Offset: 0x00812C0C
|
||||
private void DAEHFPJKAPE(Collider GGGBDENGHFM)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.DFJFKOLLEMK() && this.NNAOMDOHLPL() != null && this.IMPMFCEBEFK.NAIDKPHGIJE != null && Time.time > this.FLKOPACLDMF)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF && playerHand.ANGJJOCHMEF)
|
||||
{
|
||||
this.FLKOPACLDMF = Time.time + 1835f;
|
||||
RemoteFollowCamera.JFNOAJOFBPG jfnoajofbpg = this.NNAOMDOHLPL().NAIDKPHGIJE.CycleFollowMode();
|
||||
bool flag = jfnoajofbpg == RemoteFollowCamera.JFNOAJOFBPG.Default;
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(flag);
|
||||
this.AOMHKHLGJKC((!flag) ? this.defaultScreenMaterial : this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA5E RID: 121438 RVA: 0x00814B04 File Offset: 0x00812D04
|
||||
private void FLPFBLBDFFN()
|
||||
{
|
||||
int num = this.APAKKLCFEFG.CPIBGJLHLBL();
|
||||
PhotonView photonView = PhotonView.NMBFNIJMFOO(num);
|
||||
RemoteControllable remoteControllable = ((!(photonView != null)) ? null : photonView.GetComponent<RemoteControllable>());
|
||||
if (this.controlledObject != null && this.controlledObject != remoteControllable)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE -= this.MILGPDJKIME;
|
||||
}
|
||||
this.controlledObject = remoteControllable;
|
||||
if (this.controlledObject != null)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.MCCMCFBPLJC(new Tool.FKDCEJIOFAF(this.OnCarReset));
|
||||
this.controlledObject.BKDFLNGCINH.DODKEKGDAOF(new Tool.FCJCFBDGJIM(this.JGCOEAHIDAA));
|
||||
if (this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.GCADFHNFKEK().targetTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
this.GLOKHDLOECF = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.PDEDGHAIKDC(false);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000DB2 RID: 3506
|
||||
// (get) Token: 0x0601DA5F RID: 121439 RVA: 0x00814C10 File Offset: 0x00812E10
|
||||
// (set) Token: 0x0601DA73 RID: 121459 RVA: 0x00815570 File Offset: 0x00813770
|
||||
public bool GLOKHDLOECF { get; private set; }
|
||||
|
||||
// Token: 0x0601DA60 RID: 121440 RVA: 0x00814C18 File Offset: 0x00812E18
|
||||
private void BHJOBODFMIG(bool NOBAPCOKFIL)
|
||||
{
|
||||
this.<LJHGLDDIHIK>k__BackingField = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA62 RID: 121442 RVA: 0x00814C44 File Offset: 0x00812E44
|
||||
protected virtual void MPFILNDGMBF()
|
||||
{
|
||||
base.DDJMPFMAKDO();
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC -= this.EAPDKIPJPKM;
|
||||
this.BKDFLNGCINH.POJHLEKILDI -= this.IJCFCDJGNPK;
|
||||
this.teamColorRenderer.ILKNLNAFCPA(new Action(this.JEJFEKGCANF));
|
||||
if (this.controlledObject != null)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE -= this.LGNGKGEOBPM;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA63 RID: 121443 RVA: 0x00814CCC File Offset: 0x00812ECC
|
||||
private void DKJEEIOJIKJ(Collider GGGBDENGHFM, bool EIBIKILNFKN)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.DFJFKOLLEMK() && Time.time > this.EFKPEJILCDE)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF)
|
||||
{
|
||||
this.EFKPEJILCDE = Time.time + 1719f;
|
||||
this.EDOOENLHMKB();
|
||||
if (EIBIKILNFKN)
|
||||
{
|
||||
this.rcAnimation.PressLeftVirtualButton();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rcAnimation.PMDFNFEFCHF();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA64 RID: 121444 RVA: 0x00814D6C File Offset: 0x00812F6C
|
||||
protected virtual void BBOIJKLPABP()
|
||||
{
|
||||
base.ELPAGAAOPFN();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, "Room created, but objects failed to save. Please try again.", -1, (IKCAJLLAFML)8, new Action(this.FACHHMDMKAJ));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.EAPDKIPJPKM;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.AMMMLPOHOAO;
|
||||
this.teamColorRenderer.LPCJJBBCIHC += this.NGNOJKOHGPM;
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, -14);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 1) ? 0 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA65 RID: 121445 RVA: 0x00814E4C File Offset: 0x0081304C
|
||||
private void JEJFEKGCANF()
|
||||
{
|
||||
if (this.HAKPLHMPCNO() && this.controlledObject.JNOCCMDBMIO())
|
||||
{
|
||||
this.controlledObject.OGOEEEJCBNA.HAPPDKOIBKA = this.teamColorRenderer.HAPPDKOIBKA;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA66 RID: 121446 RVA: 0x00814E84 File Offset: 0x00813084
|
||||
public bool HILKCDOLAOC()
|
||||
{
|
||||
return this.<LJHGLDDIHIK>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA67 RID: 121447 RVA: 0x00814E8C File Offset: 0x0081308C
|
||||
protected virtual void OJAIDLPNIEI()
|
||||
{
|
||||
base.ELPAGAAOPFN();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, "SkipRegistrationVideo", -1, IKCAJLLAFML.AUTHORITY, new Action(this.FACHHMDMKAJ));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.EAPDKIPJPKM;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.AMMMLPOHOAO;
|
||||
this.teamColorRenderer.MADEPONMILB(new Action(this.MNEBNJLCACP));
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, -77);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 0) ? 0 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA68 RID: 121448 RVA: 0x00814F6C File Offset: 0x0081316C
|
||||
private void FACHHMDMKAJ()
|
||||
{
|
||||
int num = this.APAKKLCFEFG.CPIBGJLHLBL();
|
||||
PhotonView photonView = PhotonView.Find(num);
|
||||
RemoteControllable remoteControllable = ((!(photonView != null)) ? null : photonView.GetComponent<RemoteControllable>());
|
||||
if (this.controlledObject != null && this.controlledObject != remoteControllable)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE -= this.OnCarReset;
|
||||
}
|
||||
this.controlledObject = remoteControllable;
|
||||
if (this.controlledObject != null)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.MCCMCFBPLJC(new Tool.FKDCEJIOFAF(this.MILGPDJKIME));
|
||||
this.controlledObject.BKDFLNGCINH.DOFOEEDKAAF += this.NPOFKLMAKPE;
|
||||
if (this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.NLGNFCMMLLE().targetTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
this.HFKAJEPBNLC(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.HFKAJEPBNLC(true);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA69 RID: 121449 RVA: 0x00815078 File Offset: 0x00813278
|
||||
public void BOAAFBCHOII(JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.JGODHDHHEDN() == null)
|
||||
{
|
||||
string text = "Failed to download image: ";
|
||||
object[] array = new object[0];
|
||||
array[0] = base.gameObject;
|
||||
Debug.LogErrorFormat(this, text, array);
|
||||
return;
|
||||
}
|
||||
this.OMCJMIIEBDL = LJPJGMJDIKB.EPNJEMDPKIC.CHDJIPAGJGK().KLNKHLCMIMD();
|
||||
}
|
||||
|
||||
// Token: 0x0601DA6A RID: 121450 RVA: 0x008150B8 File Offset: 0x008132B8
|
||||
private void AOMHKHLGJKC(Material OOEDPEKINHG)
|
||||
{
|
||||
Material[] sharedMaterials = this.screenRenderer.sharedMaterials;
|
||||
sharedMaterials[this.screenMaterialIndex] = OOEDPEKINHG;
|
||||
this.screenRenderer.sharedMaterials = sharedMaterials;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA6B RID: 121451 RVA: 0x008150E8 File Offset: 0x008132E8
|
||||
private void DALJMMKBMID(bool NOBAPCOKFIL)
|
||||
{
|
||||
this.<LJHGLDDIHIK>k__BackingField = NOBAPCOKFIL;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA6C RID: 121452 RVA: 0x008150F4 File Offset: 0x008132F4
|
||||
private void BMOHKBEMCMJ(Collider GGGBDENGHFM)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.BHCCHBHNHCG && this.IMPMFCEBEFK != null && this.IMPMFCEBEFK.NAIDKPHGIJE != null && Time.time > this.FLKOPACLDMF)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF && playerHand.ANGJJOCHMEF)
|
||||
{
|
||||
this.FLKOPACLDMF = Time.time + 1f;
|
||||
RemoteFollowCamera.JFNOAJOFBPG jfnoajofbpg = this.IMPMFCEBEFK.NAIDKPHGIJE.CycleFollowMode();
|
||||
bool flag = jfnoajofbpg != RemoteFollowCamera.JFNOAJOFBPG.None;
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(flag);
|
||||
this.OLJMBEMBJNE((!flag) ? this.defaultScreenMaterial : this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA6D RID: 121453 RVA: 0x008151EC File Offset: 0x008133EC
|
||||
private void DNBHHCKFBFA(Collider GGGBDENGHFM)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.IGIPCHFCFNN() && this.NNAOMDOHLPL() != null && this.IMPMFCEBEFK.NAIDKPHGIJE != null && Time.time > this.FLKOPACLDMF)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF && playerHand.ANGJJOCHMEF)
|
||||
{
|
||||
this.FLKOPACLDMF = Time.time + 475f;
|
||||
RemoteFollowCamera.JFNOAJOFBPG jfnoajofbpg = this.BEDFNOFNHCD().NAIDKPHGIJE.EMANGBHGOBN();
|
||||
bool flag = jfnoajofbpg == RemoteFollowCamera.JFNOAJOFBPG.Default;
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(flag);
|
||||
this.MGNEIOBNCAK((!flag) ? this.defaultScreenMaterial : this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA6E RID: 121454 RVA: 0x008152E4 File Offset: 0x008134E4
|
||||
private void OABKDPCFECF(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.PLLMPAPABJC.NHDDPGADJPJ)
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.RemoteControl;
|
||||
if (this.GLOKHDLOECF)
|
||||
{
|
||||
if (!this.controlledObject.BHCCHBHNHCG && !this.controlledObject.BKDFLNGCINH.OHGPCMJMFGC)
|
||||
{
|
||||
this.controlledObject.OMNGGJICBBI.TransferOwnership(this.BKDFLNGCINH.HKLENNJOICH);
|
||||
}
|
||||
if (this.controlledObject.NAIDKPHGIJE != null && this.controlledObject.NAIDKPHGIJE.IDJAPMHOOLA != RemoteFollowCamera.JFNOAJOFBPG.None)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(true);
|
||||
this.OLJMBEMBJNE(this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.GLOKHDLOECF)
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ExcludeTool(this.controlledObject.BKDFLNGCINH);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000DB4 RID: 3508
|
||||
// (get) Token: 0x0601DA6F RID: 121455 RVA: 0x008153D4 File Offset: 0x008135D4
|
||||
public int DPGMALKFGBG
|
||||
{
|
||||
get
|
||||
{
|
||||
return int.MaxValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA70 RID: 121456 RVA: 0x008153DC File Offset: 0x008135DC
|
||||
public RemoteControllable NNAOMDOHLPL()
|
||||
{
|
||||
return this.controlledObject;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA71 RID: 121457 RVA: 0x008153E4 File Offset: 0x008135E4
|
||||
private void Start()
|
||||
{
|
||||
this.COHBNMNFHCE();
|
||||
this.PIIIPLLACOE();
|
||||
if (this.screenButtonForwarder != null)
|
||||
{
|
||||
this.screenButtonForwarder.DLJLJBPKIEJ += this.BMOHKBEMCMJ;
|
||||
}
|
||||
if (this.leftResetButtonForwarder != null)
|
||||
{
|
||||
this.leftResetButtonForwarder.DLJLJBPKIEJ += this.LFDBDMPMKEM;
|
||||
}
|
||||
if (this.rightResetButtonForwarder != null)
|
||||
{
|
||||
this.rightResetButtonForwarder.DLJLJBPKIEJ += this.BBHNKIKFAIK;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA72 RID: 121458 RVA: 0x00815478 File Offset: 0x00813678
|
||||
private void OPNIBENEFJE(Collider GGGBDENGHFM)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.BHCCHBHNHCG && this.BEDFNOFNHCD() != null && this.BEDFNOFNHCD().NAIDKPHGIJE != null && Time.time > this.FLKOPACLDMF)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF && playerHand.ANGJJOCHMEF)
|
||||
{
|
||||
this.FLKOPACLDMF = Time.time + 4f;
|
||||
RemoteFollowCamera.JFNOAJOFBPG jfnoajofbpg = this.BEDFNOFNHCD().NAIDKPHGIJE.PBMAGCGGOOL();
|
||||
bool flag = jfnoajofbpg == RemoteFollowCamera.JFNOAJOFBPG.None;
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(flag);
|
||||
this.MGNEIOBNCAK((!flag) ? this.defaultScreenMaterial : this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA74 RID: 121460 RVA: 0x0081557C File Offset: 0x0081377C
|
||||
private void AMMMLPOHOAO(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.HJLLJOGHFJC().KIIDMBGACOB())
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.AOGNBAHOOHM(ControllerIO.KJJKAFNOLLL.Standard);
|
||||
if (this.GLOKHDLOECF && this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(false);
|
||||
this.OLJMBEMBJNE(this.defaultScreenMaterial);
|
||||
}
|
||||
}
|
||||
if (this.IDPGBPFGKKJ() && SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.LLGNGJHOCPF(this.controlledObject.BKDFLNGCINH, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA75 RID: 121461 RVA: 0x00815624 File Offset: 0x00813824
|
||||
private void JGEPNJDKKKI()
|
||||
{
|
||||
this.MNEBNJLCACP();
|
||||
this.FLPFBLBDFFN();
|
||||
if (this.screenButtonForwarder != null)
|
||||
{
|
||||
this.screenButtonForwarder.DLJLJBPKIEJ += this.LOLIGJPKKBC;
|
||||
}
|
||||
if (this.leftResetButtonForwarder != null)
|
||||
{
|
||||
this.leftResetButtonForwarder.DLJLJBPKIEJ += this.IFKLJDDKDJL;
|
||||
}
|
||||
if (this.rightResetButtonForwarder != null)
|
||||
{
|
||||
this.rightResetButtonForwarder.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.GJKOCOPCFPG));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA76 RID: 121462 RVA: 0x008156B8 File Offset: 0x008138B8
|
||||
public bool IDPGBPFGKKJ()
|
||||
{
|
||||
return this.<LJHGLDDIHIK>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA77 RID: 121463 RVA: 0x008156C0 File Offset: 0x008138C0
|
||||
private void PIIIPLLACOE()
|
||||
{
|
||||
int num = this.APAKKLCFEFG.CPIBGJLHLBL();
|
||||
PhotonView photonView = PhotonView.Find(num);
|
||||
RemoteControllable remoteControllable = ((!(photonView != null)) ? null : photonView.GetComponent<RemoteControllable>());
|
||||
if (this.controlledObject != null && this.controlledObject != remoteControllable)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE -= this.OnCarReset;
|
||||
}
|
||||
this.controlledObject = remoteControllable;
|
||||
if (this.controlledObject != null)
|
||||
{
|
||||
this.controlledObject.BKDFLNGCINH.POJJFNOCIGE += this.OnCarReset;
|
||||
this.controlledObject.BKDFLNGCINH.DOFOEEDKAAF += this.OnCarDestroyed;
|
||||
if (this.controlledObject.NAIDKPHGIJE != null)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.MJBAGMOHOKM.targetTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
this.GLOKHDLOECF = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.GLOKHDLOECF = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA78 RID: 121464 RVA: 0x008157CC File Offset: 0x008139CC
|
||||
public void IEIKHDIMKLC(Tool COMHEONOMBA)
|
||||
{
|
||||
this.DIHLFLEHJKL(null);
|
||||
}
|
||||
|
||||
// Token: 0x0601DA79 RID: 121465 RVA: 0x008157D8 File Offset: 0x008139D8
|
||||
protected override void FNNCEMJECLP()
|
||||
{
|
||||
base.MPIHCILBGLM();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, "_EmissionColor", -1, (IKCAJLLAFML)5, new Action(this.JNOLNHLJKEM));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.EAPDKIPJPKM;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.JOPKIMBMMOM;
|
||||
this.teamColorRenderer.MADEPONMILB(new Action(this.JEJFEKGCANF));
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, 68);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 0) ? 1 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA7A RID: 121466 RVA: 0x008158B8 File Offset: 0x00813AB8
|
||||
protected virtual void OFOPHGFIAJM()
|
||||
{
|
||||
base.MICFHMAIGIB();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, "GZipStream", -1, IKCAJLLAFML.ANYONE, new Action(this.JNOLNHLJKEM));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.NCLFKGIAGNG;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.IJCFCDJGNPK;
|
||||
this.teamColorRenderer.FIGLGGJIPAM(new Action(this.JEJFEKGCANF));
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, -30);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 0) ? 0 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA7B RID: 121467 RVA: 0x00815998 File Offset: 0x00813B98
|
||||
public void OKFALINAIGO(ref JENDPFGMLME LJPJGMJDIKB)
|
||||
{
|
||||
if (LJPJGMJDIKB.JGODHDHHEDN() != null)
|
||||
{
|
||||
string text = "Please put on your VR headset";
|
||||
object[] array = new object[1];
|
||||
array[1] = base.gameObject;
|
||||
Debug.LogErrorFormat(this, text, array);
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.EPNJEMDPKIC = new EPNJEMDPKIC();
|
||||
if (this.GLOKHDLOECF)
|
||||
{
|
||||
PersistenceView component = this.controlledObject.GetComponent<PersistenceView>();
|
||||
if (component == null)
|
||||
{
|
||||
string text2 = "spillway4";
|
||||
object[] array2 = new object[3];
|
||||
array2[1] = base.gameObject;
|
||||
array2[0] = this.controlledObject.gameObject;
|
||||
Debug.LogFormat(this, text2, array2);
|
||||
return;
|
||||
}
|
||||
LJPJGMJDIKB.EPNJEMDPKIC.NEGHOJKDMFA(component.BCBLLJMIDBM().MDOELPMBEGJ());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA7C RID: 121468 RVA: 0x00815A3C File Offset: 0x00813C3C
|
||||
private void EAPDKIPJPKM(Tool COMHEONOMBA)
|
||||
{
|
||||
if (this.BKDFLNGCINH.FFNAKFJPBOG().KIIDMBGACOB())
|
||||
{
|
||||
this.BKDFLNGCINH.EHFOKGIGIMF.JKNCHBFALCJ.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Standard;
|
||||
if (this.HAKPLHMPCNO())
|
||||
{
|
||||
if (!this.controlledObject.GANDPDNCOKF() && !this.controlledObject.BKDFLNGCINH.OHGPCMJMFGC)
|
||||
{
|
||||
this.controlledObject.CJKKPMHAMCN().EJBOGPNBGHI(this.BKDFLNGCINH.KOODOPBILJF());
|
||||
}
|
||||
if (this.controlledObject.NAIDKPHGIJE != null && this.controlledObject.NAIDKPHGIJE.KOEKNGFICON() != RemoteFollowCamera.JFNOAJOFBPG.None)
|
||||
{
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(false);
|
||||
this.OLJMBEMBJNE(this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.HAKPLHMPCNO())
|
||||
{
|
||||
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.PBJNENAJPBE(this.controlledObject.BKDFLNGCINH);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA7D RID: 121469 RVA: 0x00815B2C File Offset: 0x00813D2C
|
||||
private void LOLIGJPKKBC(Collider GGGBDENGHFM)
|
||||
{
|
||||
if (this.BKDFLNGCINH.OHGPCMJMFGC && this.BKDFLNGCINH.IGIPCHFCFNN() && this.BEDFNOFNHCD() != null && this.IMPMFCEBEFK.NAIDKPHGIJE != null && Time.time > this.FLKOPACLDMF)
|
||||
{
|
||||
PlayerHand playerHand = GGGBDENGHFM.HLBBAALDKLM();
|
||||
if (playerHand != null && playerHand != this.BKDFLNGCINH.EHFOKGIGIMF && playerHand.ANGJJOCHMEF)
|
||||
{
|
||||
this.FLKOPACLDMF = Time.time + 1645f;
|
||||
RemoteFollowCamera.JFNOAJOFBPG jfnoajofbpg = this.BEDFNOFNHCD().NAIDKPHGIJE.BJLEJMKHDEE();
|
||||
bool flag = jfnoajofbpg != RemoteFollowCamera.JFNOAJOFBPG.Default;
|
||||
this.controlledObject.NAIDKPHGIJE.gameObject.SetActive(flag);
|
||||
this.ICNEEDHJEAM((!flag) ? this.defaultScreenMaterial : this.JCPPGNDGKDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601DA7E RID: 121470 RVA: 0x00815C24 File Offset: 0x00813E24
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
this.APAKKLCFEFG = new LHLLJPPCDKA<int>(this, "RC_CO", -1, IKCAJLLAFML.ANYONE, new Action(this.PIIIPLLACOE));
|
||||
this.BKDFLNGCINH.GFBCCFIMFEC += this.OABKDPCFECF;
|
||||
this.BKDFLNGCINH.POJHLEKILDI += this.JOPKIMBMMOM;
|
||||
this.teamColorRenderer.LPCJJBBCIHC += this.COHBNMNFHCE;
|
||||
this.ANHNNLOIDPF = new RenderTexture((int)this.resolution.x, (int)this.resolution.y, 24);
|
||||
this.ANHNNLOIDPF.antiAliasing = ((QualitySettings.antiAliasing <= 0) ? 1 : QualitySettings.antiAliasing);
|
||||
this.JCPPGNDGKDC = new Material(this.screenRenderMaterial);
|
||||
this.JCPPGNDGKDC.mainTexture = this.ANHNNLOIDPF;
|
||||
}
|
||||
|
||||
// Token: 0x0601DA7F RID: 121471 RVA: 0x00815D04 File Offset: 0x00813F04
|
||||
public int ALGCEFJLKMB()
|
||||
{
|
||||
return -19;
|
||||
}
|
||||
|
||||
// Token: 0x04004D7C RID: 19836
|
||||
[SerializeField]
|
||||
private RemoteControllable controlledObject;
|
||||
|
||||
// Token: 0x04004D7D RID: 19837
|
||||
[SerializeField]
|
||||
private Transform resetControlledObjectTransform;
|
||||
|
||||
// Token: 0x04004D7E RID: 19838
|
||||
[SerializeField]
|
||||
private CollisionForwarder leftResetButtonForwarder;
|
||||
|
||||
// Token: 0x04004D7F RID: 19839
|
||||
[SerializeField]
|
||||
private CollisionForwarder rightResetButtonForwarder;
|
||||
|
||||
// Token: 0x04004D80 RID: 19840
|
||||
[Header("Screen")]
|
||||
[SerializeField]
|
||||
private Renderer screenRenderer;
|
||||
|
||||
// Token: 0x04004D81 RID: 19841
|
||||
[SerializeField]
|
||||
private int screenMaterialIndex;
|
||||
|
||||
// Token: 0x04004D82 RID: 19842
|
||||
[SerializeField]
|
||||
private Material screenRenderMaterial;
|
||||
|
||||
// Token: 0x04004D83 RID: 19843
|
||||
[SerializeField]
|
||||
private Material defaultScreenMaterial;
|
||||
|
||||
// Token: 0x04004D84 RID: 19844
|
||||
[SerializeField]
|
||||
private CollisionForwarder screenButtonForwarder;
|
||||
|
||||
// Token: 0x04004D85 RID: 19845
|
||||
[SerializeField]
|
||||
private Vector2 resolution = new Vector2(480f, 270f);
|
||||
|
||||
// Token: 0x04004D86 RID: 19846
|
||||
[SerializeField]
|
||||
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
||||
private Tool _tool;
|
||||
|
||||
// Token: 0x04004D87 RID: 19847
|
||||
[SerializeField]
|
||||
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
||||
private RemoteControlAnimation rcAnimation;
|
||||
|
||||
// Token: 0x04004D88 RID: 19848
|
||||
[SerializeField]
|
||||
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
||||
private TeamColorRenderer teamColorRenderer;
|
||||
|
||||
// Token: 0x04004D89 RID: 19849
|
||||
private LHLLJPPCDKA<int> APAKKLCFEFG;
|
||||
|
||||
// Token: 0x04004D8B RID: 19851
|
||||
private Material JCPPGNDGKDC;
|
||||
|
||||
// Token: 0x04004D8C RID: 19852
|
||||
private RenderTexture ANHNNLOIDPF;
|
||||
|
||||
// Token: 0x04004D8D RID: 19853
|
||||
private float FLKOPACLDMF;
|
||||
|
||||
// Token: 0x04004D8E RID: 19854
|
||||
private float EFKPEJILCDE;
|
||||
|
||||
// Token: 0x04004D8F RID: 19855
|
||||
private Guid OMCJMIIEBDL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user