1721 lines
51 KiB
C#
1721 lines
51 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Photon;
|
|
using RecRoom.Persistence;
|
|
using RecRoom.Protobuf;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020000A5 RID: 165
|
|
public class ToolHolder : global::Photon.MonoBehaviour, KKCDMFEHDHE, EDODNJKFIIN
|
|
{
|
|
// Token: 0x06002221 RID: 8737 RVA: 0x000A1554 File Offset: 0x0009F754
|
|
public void HMFLNMIIAIN(Tool NOBAPCOKFIL)
|
|
{
|
|
this.DBJCFFNKIJK.MEAINJPIECA((!(NOBAPCOKFIL != null)) ? (-1) : NOBAPCOKFIL.CJKKPMHAMCN().HNPFGGAKNPI());
|
|
}
|
|
|
|
// Token: 0x06002222 RID: 8738 RVA: 0x000A1580 File Offset: 0x0009F780
|
|
private bool AGDILDNHKMM(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.FLNLOPGDPGG();
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM != this.COMHEONOMBA && !BEJEENGIMJK && ENBMEDIFBLM.NEONGIONACF && (tool == null || tool == ENBMEDIFBLM) && ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x06002223 RID: 8739 RVA: 0x000A15EC File Offset: 0x0009F7EC
|
|
public Tool HPLAKPFPICB()
|
|
{
|
|
PhotonView photonView = PhotonView.Find(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x06002224 RID: 8740 RVA: 0x000A1624 File Offset: 0x0009F824
|
|
protected virtual void GLBKBCBIOFJ()
|
|
{
|
|
base.MPIHCILBGLM();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "event_properties", -1, IKCAJLLAFML.ANYONE, new Action(this.LJEOBJJDBHH));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.DFODCDEMCNK;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.ANBMJHAOKDO += this.IDNLJGAKOCJ;
|
|
}
|
|
|
|
// Token: 0x06002225 RID: 8741 RVA: 0x000A16B8 File Offset: 0x0009F8B8
|
|
public void FLLMOFPGFGB(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.GJONJNBEGHG != null)
|
|
{
|
|
string text = "rotation";
|
|
object[] array = new object[0];
|
|
array[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.KKOOBCNEABK(new GJONJNBEGHG());
|
|
if (this.PCFAENAHCLB() != null)
|
|
{
|
|
PersistenceView component = this.NMGNIHCOCHL().GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.GJONJNBEGHG.IKMKCEPNBNM(component.HEIMFMFBLDA().MDOELPMBEGJ());
|
|
}
|
|
else
|
|
{
|
|
string text2 = "Could not find tool with GUID {0} to attach to ToolHolder {1}";
|
|
object[] array2 = new object[0];
|
|
array2[1] = base.gameObject;
|
|
array2[1] = this.HPLAKPFPICB().gameObject;
|
|
Debug.LogFormat(this, text2, array2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002226 RID: 8742 RVA: 0x000A1768 File Offset: 0x0009F968
|
|
public void KCACAGKOHHB(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.GJONJNBEGHG != null)
|
|
{
|
|
string text = "scale";
|
|
object[] array = new object[0];
|
|
array[0] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.GJONJNBEGHG = new GJONJNBEGHG();
|
|
if (this.CAKCFGPCFJN() != null)
|
|
{
|
|
PersistenceView component = this.HPLAKPFPICB().GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.BFIDGJNLGPA().AGLKDHHGMIK(component.JHPDLBBCNJE().MDOELPMBEGJ());
|
|
}
|
|
else
|
|
{
|
|
string text2 = "Speed Hack Detector";
|
|
object[] array2 = new object[1];
|
|
array2[0] = base.gameObject;
|
|
array2[1] = this.HPLAKPFPICB().gameObject;
|
|
Debug.LogFormat(this, text2, array2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002227 RID: 8743 RVA: 0x000A1818 File Offset: 0x0009FA18
|
|
public void HDEECPMABHH()
|
|
{
|
|
if (this.NPDOKOFGKPG != null)
|
|
{
|
|
if (this.NPDOKOFGKPG.BFIDGJNLGPA() == null)
|
|
{
|
|
Debug.LogErrorFormat(this, "Failed to get room data : ", new object[] { base.gameObject });
|
|
return;
|
|
}
|
|
Guid guid = this.NPDOKOFGKPG.GJONJNBEGHG.GFNACGIDJBK.KLNKHLCMIMD();
|
|
if (guid != Guid.Empty)
|
|
{
|
|
PersistenceView persistenceView;
|
|
if (PersistenceView.AllViews.TryGetValue(guid, out persistenceView))
|
|
{
|
|
if (persistenceView.DGLOKLCEMLH())
|
|
{
|
|
Tool component = persistenceView.GetComponent<Tool>();
|
|
if (component != null)
|
|
{
|
|
this.HMFLNMIIAIN(component);
|
|
}
|
|
else
|
|
{
|
|
string text = "Tie Round";
|
|
object[] array = new object[] { null, component };
|
|
array[1] = guid;
|
|
array[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
string text2 = " respawn: ";
|
|
object[] array2 = new object[1];
|
|
array2[1] = guid;
|
|
array2[0] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text2, array2);
|
|
}
|
|
}
|
|
this.NPDOKOFGKPG = null;
|
|
}
|
|
else
|
|
{
|
|
string text3 = "z";
|
|
object[] array3 = new object[0];
|
|
array3[0] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text3, array3);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002228 RID: 8744 RVA: 0x000A1934 File Offset: 0x0009FB34
|
|
private void Start()
|
|
{
|
|
foreach (Tool tool in global::UnityEngine.Object.FindObjectsOfType<Tool>())
|
|
{
|
|
this.DIENFAEJAAD(tool);
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.POJJFNOCIGE += this.DLAFBMNDAAE;
|
|
if (this.JLBJEENDPBE(this.initiallyCoupledTool, this.initiallyCoupledTool.OHGPCMJMFGC))
|
|
{
|
|
if (this.initiallyCoupledTool.BHCCHBHNHCG)
|
|
{
|
|
this.OOIMAEHGBIC = this.initiallyCoupledTool;
|
|
}
|
|
else
|
|
{
|
|
this.LJEOBJJDBHH();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002229 RID: 8745 RVA: 0x000A19D4 File Offset: 0x0009FBD4
|
|
public int KHMEFHOBNLL()
|
|
{
|
|
return -48;
|
|
}
|
|
|
|
// Token: 0x0600222A RID: 8746 RVA: 0x000A19DC File Offset: 0x0009FBDC
|
|
protected virtual void CENMIOJCICJ()
|
|
{
|
|
base.MPIHCILBGLM();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "iTween Error: Drawing a line with Handles is temporarily disabled because of compatability issues with Unity 2.6!", -1, (IKCAJLLAFML)8, new Action(this.DAIMMLBMDBP));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.OMJIAAPFLDD;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.ANBMJHAOKDO += this.DIENFAEJAAD;
|
|
}
|
|
|
|
// Token: 0x0600222B RID: 8747 RVA: 0x000A1A70 File Offset: 0x0009FC70
|
|
private bool LKEJLOCACMB(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.LCJIHDHAGMN();
|
|
return !(ENBMEDIFBLM != null) || !(ENBMEDIFBLM != this.COMHEONOMBA) || BEJEENGIMJK || !ENBMEDIFBLM.NEONGIONACF || (!(tool == null) && !(tool == ENBMEDIFBLM)) || ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x0600222C RID: 8748 RVA: 0x000A1ADC File Offset: 0x0009FCDC
|
|
private void JMJHHOEMLLO(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.GANDPDNCOKF())
|
|
{
|
|
float sqrMagnitude = (ENBMEDIFBLM.transform.position - this.toolCouplingTransform.position).sqrMagnitude;
|
|
if (sqrMagnitude < this.couplingRadius * this.couplingRadius && this.AGDILDNHKMM(ENBMEDIFBLM, false))
|
|
{
|
|
this.OOIMAEHGBIC = ENBMEDIFBLM;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600222D RID: 8749 RVA: 0x000A1B40 File Offset: 0x0009FD40
|
|
private void PBJJGHHLIHN()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x0600222E RID: 8750 RVA: 0x000A1B90 File Offset: 0x0009FD90
|
|
public Tool HJOOPHJOCNA()
|
|
{
|
|
PhotonView photonView = PhotonView.NMBFNIJMFOO(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x0600222F RID: 8751 RVA: 0x000A1BC8 File Offset: 0x0009FDC8
|
|
private void DLAFBMNDAAE(Tool ENBMEDIFBLM, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
if (ENBMEDIFBLM.BHCCHBHNHCG && this.JLBJEENDPBE(ENBMEDIFBLM, ENBMEDIFBLM.OHGPCMJMFGC))
|
|
{
|
|
this.OOIMAEHGBIC = ENBMEDIFBLM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002230 RID: 8752 RVA: 0x000A1BF0 File Offset: 0x0009FDF0
|
|
public void PostDeserialize()
|
|
{
|
|
if (this.NPDOKOFGKPG != null)
|
|
{
|
|
if (this.NPDOKOFGKPG.GJONJNBEGHG == null)
|
|
{
|
|
Debug.LogErrorFormat(this, "Error deserializing ToolHolder {0}: data empty.", new object[] { base.gameObject });
|
|
return;
|
|
}
|
|
Guid guid = this.NPDOKOFGKPG.GJONJNBEGHG.GFNACGIDJBK.KLNKHLCMIMD();
|
|
if (guid != Guid.Empty)
|
|
{
|
|
PersistenceView persistenceView;
|
|
if (PersistenceView.AllViews.TryGetValue(guid, out persistenceView))
|
|
{
|
|
if (persistenceView.BHCCHBHNHCG)
|
|
{
|
|
Tool component = persistenceView.GetComponent<Tool>();
|
|
if (component != null)
|
|
{
|
|
this.OOIMAEHGBIC = component;
|
|
}
|
|
else
|
|
{
|
|
Debug.LogErrorFormat(this, "Could not attach object {0} with GUID {1} to attach to ToolHolder {2}, as it is not a tool.", new object[] { component, guid, base.gameObject });
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Debug.LogErrorFormat(this, "Could not find tool with GUID {0} to attach to ToolHolder {1}", new object[] { guid, base.gameObject });
|
|
}
|
|
}
|
|
this.NPDOKOFGKPG = null;
|
|
}
|
|
else
|
|
{
|
|
Debug.LogErrorFormat(this, "No persistence data found with PostDeserializing ToolHolder {0}", new object[] { base.gameObject });
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002231 RID: 8753 RVA: 0x000A1D0C File Offset: 0x0009FF0C
|
|
private void GFBFIABADIC()
|
|
{
|
|
Tool tool = this.FLNLOPGDPGG();
|
|
if (tool != null)
|
|
{
|
|
this.NLFAPALODGP(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002232 RID: 8754 RVA: 0x000A1D34 File Offset: 0x0009FF34
|
|
private void BBLKOBABNPJ()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x06002233 RID: 8755 RVA: 0x000A1D84 File Offset: 0x0009FF84
|
|
public void CPOMDGBJDPN(Tool NOBAPCOKFIL)
|
|
{
|
|
this.DBJCFFNKIJK.MEAINJPIECA((!(NOBAPCOKFIL != null)) ? (-1) : NOBAPCOKFIL.POOAOJPEDJD().ADMBCINHJOG);
|
|
}
|
|
|
|
// Token: 0x06002234 RID: 8756 RVA: 0x000A1DB0 File Offset: 0x0009FFB0
|
|
public int HGNKODIAPJK()
|
|
{
|
|
return 81;
|
|
}
|
|
|
|
// Token: 0x06002235 RID: 8757 RVA: 0x000A1DB8 File Offset: 0x0009FFB8
|
|
public void LKMHMOMIGDM(JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
this.NPDOKOFGKPG = LJPJGMJDIKB;
|
|
}
|
|
|
|
// Token: 0x06002236 RID: 8758 RVA: 0x000A1DC4 File Offset: 0x0009FFC4
|
|
private void BOIDCFFEAAG(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.JLBJEENDPBE(ENBMEDIFBLM, true))
|
|
{
|
|
return;
|
|
}
|
|
if (ENBMEDIFBLM.KLPIDJLDGOH() != base.ALKNHNDOPMF() && ENBMEDIFBLM.BHCCHBHNHCG)
|
|
{
|
|
if (this.COMHEONOMBA.OHGPCMJMFGC)
|
|
{
|
|
ENBMEDIFBLM.HOPJELLOPNJ().TransferOwnership(this.COMHEONOMBA.HJLLJOGHFJC().OPDLGJGHMJI);
|
|
}
|
|
else
|
|
{
|
|
base.LJILHDMCKME().TransferOwnership(ENBMEDIFBLM.LDEPFMNDDIC().BADMPMDONAH);
|
|
}
|
|
}
|
|
ENBMEDIFBLM.ONHHDMJGJOA((NILFAGNKNMH)(-68));
|
|
ENBMEDIFBLM.CADPGMLHFGH.EJKIKJAFNFB(this.COMHEONOMBA.CADPGMLHFGH, this.toolCouplingTransform.localPosition, this.toolCouplingTransform.localRotation);
|
|
}
|
|
|
|
// Token: 0x06002237 RID: 8759 RVA: 0x000A1E78 File Offset: 0x000A0078
|
|
public int LOBOBKNMHEC()
|
|
{
|
|
return 61;
|
|
}
|
|
|
|
// Token: 0x06002238 RID: 8760 RVA: 0x000A1E80 File Offset: 0x000A0080
|
|
public bool FEKICNINAMC()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06002239 RID: 8761 RVA: 0x000A1E84 File Offset: 0x000A0084
|
|
public void GPNILFKBHKK(JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
this.NPDOKOFGKPG = LJPJGMJDIKB;
|
|
}
|
|
|
|
// Token: 0x0600223A RID: 8762 RVA: 0x000A1E90 File Offset: 0x000A0090
|
|
private void EFLKGLEBHFM(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.BHCCHBHNHCG)
|
|
{
|
|
float sqrMagnitude = (ENBMEDIFBLM.transform.position - this.toolCouplingTransform.position).sqrMagnitude;
|
|
if (sqrMagnitude < this.couplingRadius * this.couplingRadius && this.JLBJEENDPBE(ENBMEDIFBLM, false))
|
|
{
|
|
this.OOIMAEHGBIC = ENBMEDIFBLM;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600223B RID: 8763 RVA: 0x000A1EF4 File Offset: 0x000A00F4
|
|
protected virtual void EADJGEAJDPK()
|
|
{
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC -= this.OOCDNDOPHHG;
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.POJJFNOCIGE -= this.NGIJKFCODDI;
|
|
}
|
|
foreach (Tool tool in new List<Tool>(this.HKNNHOJIAOP))
|
|
{
|
|
this.LNIPMFMEFBB(tool);
|
|
}
|
|
Tool.ANBMJHAOKDO -= this.DIENFAEJAAD;
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0600223C RID: 8764 RVA: 0x000A1FBC File Offset: 0x000A01BC
|
|
public void KEBGELKKCKJ()
|
|
{
|
|
if (this.NPDOKOFGKPG != null)
|
|
{
|
|
if (this.NPDOKOFGKPG.BFIDGJNLGPA() == null)
|
|
{
|
|
string text = "hidden";
|
|
object[] array = new object[1];
|
|
array[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
return;
|
|
}
|
|
Guid guid = this.NPDOKOFGKPG.GJONJNBEGHG.LCJLJAGGNLA().KLNKHLCMIMD();
|
|
if (guid != Guid.Empty)
|
|
{
|
|
PersistenceView persistenceView;
|
|
if (PersistenceView.AllViews.TryGetValue(guid, out persistenceView))
|
|
{
|
|
if (persistenceView.BHCCHBHNHCG)
|
|
{
|
|
Tool component = persistenceView.GetComponent<Tool>();
|
|
if (component != null)
|
|
{
|
|
this.OOIMAEHGBIC = component;
|
|
}
|
|
else
|
|
{
|
|
string text2 = ".";
|
|
object[] array2 = new object[5];
|
|
array2[1] = component;
|
|
array2[1] = guid;
|
|
array2[5] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text2, array2);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
string text3 = "{0} / {1}";
|
|
object[] array3 = new object[6];
|
|
array3[1] = guid;
|
|
array3[0] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text3, array3);
|
|
}
|
|
}
|
|
this.NPDOKOFGKPG = null;
|
|
}
|
|
else
|
|
{
|
|
string text4 = "projed_{0}";
|
|
object[] array4 = new object[1];
|
|
array4[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text4, array4);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600223D RID: 8765 RVA: 0x000A20D8 File Offset: 0x000A02D8
|
|
private void GLINAKAOLFD(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.IGIPCHFCFNN())
|
|
{
|
|
float sqrMagnitude = (ENBMEDIFBLM.transform.position - this.toolCouplingTransform.position).sqrMagnitude;
|
|
if (sqrMagnitude < this.couplingRadius * this.couplingRadius && this.JABKODNHEBB(ENBMEDIFBLM, false))
|
|
{
|
|
this.DIEJEKJGJKG(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600223E RID: 8766 RVA: 0x000A213C File Offset: 0x000A033C
|
|
private void EAENECCJKOK(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.DGLKKANNBPD())
|
|
{
|
|
float sqrMagnitude = (ENBMEDIFBLM.transform.position - this.toolCouplingTransform.position).sqrMagnitude;
|
|
if (sqrMagnitude < this.couplingRadius * this.couplingRadius && this.GPHHLFIIDDI(ENBMEDIFBLM, true))
|
|
{
|
|
this.MLLIHKEJMNE(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600223F RID: 8767 RVA: 0x000A21A0 File Offset: 0x000A03A0
|
|
private bool EPDFICKADLC(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.PCFAENAHCLB();
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM != this.COMHEONOMBA && !BEJEENGIMJK && ENBMEDIFBLM.NEONGIONACF && (tool == null || tool == ENBMEDIFBLM) && ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x06002240 RID: 8768 RVA: 0x000A220C File Offset: 0x000A040C
|
|
public void GMPCEIIDJDD(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.BFIDGJNLGPA() != null)
|
|
{
|
|
string text = "image";
|
|
object[] array = new object[1];
|
|
array[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.KKOOBCNEABK(new GJONJNBEGHG());
|
|
if (this.LCJIHDHAGMN() != null)
|
|
{
|
|
PersistenceView component = this.CAKCFGPCFJN().GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.GJONJNBEGHG.AGLKDHHGMIK(component.KPCECCCFGCL().MDOELPMBEGJ());
|
|
}
|
|
else
|
|
{
|
|
string text2 = "Failed to refresh relationship list: ";
|
|
object[] array2 = new object[4];
|
|
array2[1] = base.gameObject;
|
|
array2[0] = this.FLNLOPGDPGG().gameObject;
|
|
Debug.LogFormat(this, text2, array2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002241 RID: 8769 RVA: 0x000A22BC File Offset: 0x000A04BC
|
|
public void FIGOOEAFDEC(JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
this.NPDOKOFGKPG = LJPJGMJDIKB;
|
|
}
|
|
|
|
// Token: 0x06002242 RID: 8770 RVA: 0x000A22C8 File Offset: 0x000A04C8
|
|
public void MHBNDHKLGMM()
|
|
{
|
|
if (this.NPDOKOFGKPG != null)
|
|
{
|
|
if (this.NPDOKOFGKPG.GJONJNBEGHG == null)
|
|
{
|
|
Debug.LogErrorFormat(this, "HTTPRequest", new object[] { base.gameObject });
|
|
return;
|
|
}
|
|
Guid guid = this.NPDOKOFGKPG.BFIDGJNLGPA().HNBMGPLCDIG().KLNKHLCMIMD();
|
|
if (guid != Guid.Empty)
|
|
{
|
|
PersistenceView persistenceView;
|
|
if (PersistenceView.AllViews.TryGetValue(guid, out persistenceView))
|
|
{
|
|
if (persistenceView.GANDPDNCOKF())
|
|
{
|
|
Tool component = persistenceView.GetComponent<Tool>();
|
|
if (component != null)
|
|
{
|
|
this.DIEJEKJGJKG(component);
|
|
}
|
|
else
|
|
{
|
|
string text = "Description";
|
|
object[] array = new object[6];
|
|
array[1] = component;
|
|
array[0] = guid;
|
|
array[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
string text2 = "time";
|
|
object[] array2 = new object[5];
|
|
array2[0] = guid;
|
|
array2[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text2, array2);
|
|
}
|
|
}
|
|
this.NPDOKOFGKPG = null;
|
|
}
|
|
else
|
|
{
|
|
Debug.LogErrorFormat(this, "_Theta1", new object[] { base.gameObject });
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002243 RID: 8771 RVA: 0x000A23E4 File Offset: 0x000A05E4
|
|
private void DMJEBOJLLIE(Tool ENBMEDIFBLM, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
if (ENBMEDIFBLM.DFJFKOLLEMK() && this.GPHHLFIIDDI(ENBMEDIFBLM, ENBMEDIFBLM.OHGPCMJMFGC))
|
|
{
|
|
this.DIEJEKJGJKG(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000095 RID: 149
|
|
// (get) Token: 0x0600227C RID: 8828 RVA: 0x000A3A04 File Offset: 0x000A1C04
|
|
// (set) Token: 0x06002244 RID: 8772 RVA: 0x000A240C File Offset: 0x000A060C
|
|
public Tool OOIMAEHGBIC
|
|
{
|
|
get
|
|
{
|
|
PhotonView photonView = PhotonView.Find(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
set
|
|
{
|
|
this.DBJCFFNKIJK.MEAINJPIECA((!(value != null)) ? (-1) : value.OMNGGJICBBI.ADMBCINHJOG);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002245 RID: 8773 RVA: 0x000A2438 File Offset: 0x000A0638
|
|
private void LNIPMFMEFBB(Tool ENBMEDIFBLM)
|
|
{
|
|
if (this.HKNNHOJIAOP.Contains(ENBMEDIFBLM))
|
|
{
|
|
if (ENBMEDIFBLM == this.initiallyCoupledTool)
|
|
{
|
|
this.initiallyCoupledTool = null;
|
|
}
|
|
ENBMEDIFBLM.GFBCCFIMFEC -= this.IFJACOHECGE;
|
|
ENBMEDIFBLM.PLPIAOHJBOB -= this.FCKANDCKHKL;
|
|
ENBMEDIFBLM.PLEDIHHEKGA(new Tool.FCJCFBDGJIM(this.DJFDHMNNLOC));
|
|
this.HKNNHOJIAOP.Remove(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002246 RID: 8774 RVA: 0x000A24B4 File Offset: 0x000A06B4
|
|
private void JIPGMINHPPC(Tool ENBMEDIFBLM, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
if (ENBMEDIFBLM.IGIPCHFCFNN() && this.GBNJHHONJBA(ENBMEDIFBLM, ENBMEDIFBLM.OHGPCMJMFGC))
|
|
{
|
|
this.CPOMDGBJDPN(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002247 RID: 8775 RVA: 0x000A24DC File Offset: 0x000A06DC
|
|
private void PPHFBMHEPDL()
|
|
{
|
|
Tool[] array = global::UnityEngine.Object.FindObjectsOfType<Tool>();
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
Tool tool = array[i];
|
|
this.IDNLJGAKOCJ(tool);
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.MCCMCFBPLJC(new Tool.FKDCEJIOFAF(this.JIPGMINHPPC));
|
|
if (this.NJGIPAINPML(this.initiallyCoupledTool, this.initiallyCoupledTool.OHGPCMJMFGC))
|
|
{
|
|
if (this.initiallyCoupledTool.JNOCCMDBMIO())
|
|
{
|
|
this.MLLIHKEJMNE(this.initiallyCoupledTool);
|
|
}
|
|
else
|
|
{
|
|
this.NDMJEILINMF();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002248 RID: 8776 RVA: 0x000A257C File Offset: 0x000A077C
|
|
private void OMJIAAPFLDD(Tool ENBMEDIFBLM)
|
|
{
|
|
Tool tool = this.PCFAENAHCLB();
|
|
if (tool != null && tool.OELHCGECBEA() != base.PHGPEEKLIMJ())
|
|
{
|
|
tool.CEGDLFAENEJ().TransferOwnership(base.KLPIDJLDGOH().BADMPMDONAH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002249 RID: 8777 RVA: 0x000A25C4 File Offset: 0x000A07C4
|
|
private void JPILDHMKPBD()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x0600224A RID: 8778 RVA: 0x000A2614 File Offset: 0x000A0814
|
|
protected virtual void CLGGCAGCLKP()
|
|
{
|
|
base.FNNCEMJECLP();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "flating", -1, IKCAJLLAFML.MASTER, new Action(this.NDMJEILINMF));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.OOCDNDOPHHG;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.HPNBJMJBPDG(new Tool.DJEMJNNFFAH(this.DIENFAEJAAD));
|
|
}
|
|
|
|
// Token: 0x0600224B RID: 8779 RVA: 0x000A26A8 File Offset: 0x000A08A8
|
|
protected override void OnDestroy()
|
|
{
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC -= this.OOCDNDOPHHG;
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.POJJFNOCIGE -= this.DLAFBMNDAAE;
|
|
}
|
|
foreach (Tool tool in new List<Tool>(this.HKNNHOJIAOP))
|
|
{
|
|
this.KEIGFOFOICG(tool);
|
|
}
|
|
Tool.ANBMJHAOKDO -= this.DIENFAEJAAD;
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0600224C RID: 8780 RVA: 0x000A2770 File Offset: 0x000A0970
|
|
public Tool CAKCFGPCFJN()
|
|
{
|
|
PhotonView photonView = PhotonView.Find(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x0600224D RID: 8781 RVA: 0x000A27A8 File Offset: 0x000A09A8
|
|
protected virtual void CMBFEGAFGIL()
|
|
{
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC -= this.DFODCDEMCNK;
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.POJJFNOCIGE -= this.NGIJKFCODDI;
|
|
}
|
|
foreach (Tool tool in new List<Tool>(this.HKNNHOJIAOP))
|
|
{
|
|
this.LNIPMFMEFBB(tool);
|
|
}
|
|
Tool.ANBMJHAOKDO -= this.DIENFAEJAAD;
|
|
base.MMEKGKHJECF();
|
|
}
|
|
|
|
// Token: 0x17000096 RID: 150
|
|
// (get) Token: 0x0600224E RID: 8782 RVA: 0x000A2870 File Offset: 0x000A0A70
|
|
public bool AADHHMOLEOL
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600224F RID: 8783 RVA: 0x000A2874 File Offset: 0x000A0A74
|
|
private void NDMJEILINMF()
|
|
{
|
|
Tool tool = this.HJOOPHJOCNA();
|
|
if (tool != null)
|
|
{
|
|
this.BOIDCFFEAAG(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002250 RID: 8784 RVA: 0x000A289C File Offset: 0x000A0A9C
|
|
private void FJGFOEBGDCN(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.JLBJEENDPBE(ENBMEDIFBLM, false))
|
|
{
|
|
return;
|
|
}
|
|
if (ENBMEDIFBLM.HKLENNJOICH != base.HKLENNJOICH && ENBMEDIFBLM.BHCCHBHNHCG)
|
|
{
|
|
if (this.COMHEONOMBA.OHGPCMJMFGC)
|
|
{
|
|
ENBMEDIFBLM.OMNGGJICBBI.TransferOwnership(this.COMHEONOMBA.PLLMPAPABJC.OPDLGJGHMJI);
|
|
}
|
|
else
|
|
{
|
|
base.OMNGGJICBBI.TransferOwnership(ENBMEDIFBLM.HKLENNJOICH.BADMPMDONAH);
|
|
}
|
|
}
|
|
ENBMEDIFBLM.SetCollisionLayer(NILFAGNKNMH.DynamicPhysicsIgnoreDynamicAndPlayerPhysics);
|
|
ENBMEDIFBLM.CADPGMLHFGH.Pickup(this.COMHEONOMBA.CADPGMLHFGH, this.toolCouplingTransform.localPosition, this.toolCouplingTransform.localRotation);
|
|
}
|
|
|
|
// Token: 0x06002251 RID: 8785 RVA: 0x000A2950 File Offset: 0x000A0B50
|
|
private void IGPCLPOJJMG()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x06002252 RID: 8786 RVA: 0x000A29A0 File Offset: 0x000A0BA0
|
|
private void JPGEHNOBCBM(Tool ENBMEDIFBLM, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
if (ENBMEDIFBLM.GANDPDNCOKF() && this.AGDILDNHKMM(ENBMEDIFBLM, ENBMEDIFBLM.OHGPCMJMFGC))
|
|
{
|
|
this.OOIMAEHGBIC = ENBMEDIFBLM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002253 RID: 8787 RVA: 0x000A29C8 File Offset: 0x000A0BC8
|
|
public int ANMICBLPNGM()
|
|
{
|
|
return -49;
|
|
}
|
|
|
|
// Token: 0x06002254 RID: 8788 RVA: 0x000A29D0 File Offset: 0x000A0BD0
|
|
private bool KPBMAKAAIOA(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.NMGNIHCOCHL();
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM != this.COMHEONOMBA && !BEJEENGIMJK && ENBMEDIFBLM.NEONGIONACF && (tool == null || tool == ENBMEDIFBLM) && ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x06002255 RID: 8789 RVA: 0x000A2A3C File Offset: 0x000A0C3C
|
|
private void OOCDNDOPHHG(Tool ENBMEDIFBLM)
|
|
{
|
|
Tool heldTool = this.OOIMAEHGBIC;
|
|
if (heldTool != null && heldTool.HKLENNJOICH != base.HKLENNJOICH)
|
|
{
|
|
heldTool.OMNGGJICBBI.TransferOwnership(base.HKLENNJOICH.BADMPMDONAH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002256 RID: 8790 RVA: 0x000A2A84 File Offset: 0x000A0C84
|
|
public void DIEJEKJGJKG(Tool NOBAPCOKFIL)
|
|
{
|
|
this.DBJCFFNKIJK.MEAINJPIECA((!(NOBAPCOKFIL != null)) ? (-1) : NOBAPCOKFIL.ONAOMJAKKMA().GCPHMBPAAOM());
|
|
}
|
|
|
|
// Token: 0x06002257 RID: 8791 RVA: 0x000A2AB0 File Offset: 0x000A0CB0
|
|
public void PMDGNJFKEDD(JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
this.NPDOKOFGKPG = LJPJGMJDIKB;
|
|
}
|
|
|
|
// Token: 0x06002258 RID: 8792 RVA: 0x000A2ABC File Offset: 0x000A0CBC
|
|
private void HOJHGHJDHEC(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.BHCCHBHNHCG)
|
|
{
|
|
Tool heldTool = this.OOIMAEHGBIC;
|
|
if (heldTool != null && ENBMEDIFBLM == heldTool)
|
|
{
|
|
this.OOIMAEHGBIC = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002259 RID: 8793 RVA: 0x000A2AFC File Offset: 0x000A0CFC
|
|
private void JBICIFIJAOP(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.JNOCCMDBMIO())
|
|
{
|
|
float sqrMagnitude = (ENBMEDIFBLM.transform.position - this.toolCouplingTransform.position).sqrMagnitude;
|
|
if (sqrMagnitude < this.couplingRadius * this.couplingRadius && this.GBNJHHONJBA(ENBMEDIFBLM, false))
|
|
{
|
|
this.HMFLNMIIAIN(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600225A RID: 8794 RVA: 0x000A2B60 File Offset: 0x000A0D60
|
|
private void BJNKCPPEOJP(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.HKNNHOJIAOP.Contains(ENBMEDIFBLM) && ENBMEDIFBLM != this.COMHEONOMBA)
|
|
{
|
|
ENBMEDIFBLM.GFBCCFIMFEC += this.OAKMFEKAIGP;
|
|
ENBMEDIFBLM.PLPIAOHJBOB += this.GHCFLOFEHHF;
|
|
ENBMEDIFBLM.DOFOEEDKAAF += this.KEIGFOFOICG;
|
|
this.HKNNHOJIAOP.Add(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600225B RID: 8795 RVA: 0x000A2BD4 File Offset: 0x000A0DD4
|
|
private void DJFDHMNNLOC(Tool ENBMEDIFBLM)
|
|
{
|
|
if (this.HKNNHOJIAOP.Contains(ENBMEDIFBLM))
|
|
{
|
|
if (ENBMEDIFBLM == this.initiallyCoupledTool)
|
|
{
|
|
this.initiallyCoupledTool = null;
|
|
}
|
|
ENBMEDIFBLM.GFBCCFIMFEC -= this.OAKMFEKAIGP;
|
|
ENBMEDIFBLM.PLPIAOHJBOB -= this.JMJHHOEMLLO;
|
|
ENBMEDIFBLM.DOFOEEDKAAF -= this.KEIGFOFOICG;
|
|
this.HKNNHOJIAOP.Remove(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600225C RID: 8796 RVA: 0x000A2C50 File Offset: 0x000A0E50
|
|
private bool AMLCELLEMHG(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.PCFAENAHCLB();
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM != this.COMHEONOMBA && !BEJEENGIMJK && ENBMEDIFBLM.NEONGIONACF && (tool == null || tool == ENBMEDIFBLM) && ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x0600225D RID: 8797 RVA: 0x000A2CBC File Offset: 0x000A0EBC
|
|
public Tool NMGNIHCOCHL()
|
|
{
|
|
PhotonView photonView = PhotonView.NMBFNIJMFOO(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x0600225E RID: 8798 RVA: 0x000A2CF4 File Offset: 0x000A0EF4
|
|
private void DKIDEMNALJF(Tool ENBMEDIFBLM)
|
|
{
|
|
if (this.HKNNHOJIAOP.Contains(ENBMEDIFBLM))
|
|
{
|
|
if (ENBMEDIFBLM == this.initiallyCoupledTool)
|
|
{
|
|
this.initiallyCoupledTool = null;
|
|
}
|
|
ENBMEDIFBLM.GFBCCFIMFEC -= this.HOJHGHJDHEC;
|
|
ENBMEDIFBLM.PLPIAOHJBOB -= this.JMJHHOEMLLO;
|
|
ENBMEDIFBLM.PLEDIHHEKGA(new Tool.FCJCFBDGJIM(this.KEIGFOFOICG));
|
|
this.HKNNHOJIAOP.Remove(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600225F RID: 8799 RVA: 0x000A2D70 File Offset: 0x000A0F70
|
|
private bool JABKODNHEBB(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.NMGNIHCOCHL();
|
|
return !(ENBMEDIFBLM != null) || !(ENBMEDIFBLM != this.COMHEONOMBA) || BEJEENGIMJK || !ENBMEDIFBLM.NEONGIONACF || (!(tool == null) && !(tool == ENBMEDIFBLM)) || ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x06002260 RID: 8800 RVA: 0x000A2DDC File Offset: 0x000A0FDC
|
|
public void SerializeTo(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.GJONJNBEGHG != null)
|
|
{
|
|
Debug.LogErrorFormat(this, "Error serializing ToolHolder {0}: Data already specified.", new object[] { base.gameObject });
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.GJONJNBEGHG = new GJONJNBEGHG();
|
|
if (this.OOIMAEHGBIC != null)
|
|
{
|
|
PersistenceView component = this.OOIMAEHGBIC.GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.GJONJNBEGHG.GFNACGIDJBK = component.PKJFPDJKJAH.MDOELPMBEGJ();
|
|
}
|
|
else
|
|
{
|
|
Debug.LogFormat(this, "Serializing ToolHolder {0}: HeldTool {1} has no corresponding PersistenceView.", new object[]
|
|
{
|
|
base.gameObject,
|
|
this.OOIMAEHGBIC.gameObject
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002261 RID: 8801 RVA: 0x000A2E8C File Offset: 0x000A108C
|
|
private void FBAPEOMADMK()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x06002262 RID: 8802 RVA: 0x000A2EDC File Offset: 0x000A10DC
|
|
private void LJEOBJJDBHH()
|
|
{
|
|
Tool heldTool = this.OOIMAEHGBIC;
|
|
if (heldTool != null)
|
|
{
|
|
this.FJGFOEBGDCN(heldTool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002263 RID: 8803 RVA: 0x000A2F04 File Offset: 0x000A1104
|
|
public void GFNECHBHIIM(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.GJONJNBEGHG != null)
|
|
{
|
|
string text = "CaptureTheGIF";
|
|
object[] array = new object[1];
|
|
array[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.GJONJNBEGHG = new GJONJNBEGHG();
|
|
if (this.OOIMAEHGBIC != null)
|
|
{
|
|
PersistenceView component = this.LCJIHDHAGMN().GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.BFIDGJNLGPA().EPAKGLECNLB(component.ELKEKHLGDPM().MDOELPMBEGJ());
|
|
}
|
|
else
|
|
{
|
|
string text2 = "detach";
|
|
object[] array2 = new object[1];
|
|
array2[1] = base.gameObject;
|
|
array2[1] = this.OOIMAEHGBIC.gameObject;
|
|
Debug.LogFormat(this, text2, array2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002264 RID: 8804 RVA: 0x000A2FB4 File Offset: 0x000A11B4
|
|
private void FLIBGBGHKCG()
|
|
{
|
|
foreach (Tool tool in global::UnityEngine.Object.FindObjectsOfType<Tool>())
|
|
{
|
|
this.PGAMIAMGMCI(tool);
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.MCCMCFBPLJC(new Tool.FKDCEJIOFAF(this.DMJEBOJLLIE));
|
|
if (this.OCCMFOHNMOJ(this.initiallyCoupledTool, this.initiallyCoupledTool.OHGPCMJMFGC))
|
|
{
|
|
if (this.initiallyCoupledTool.IGIPCHFCFNN())
|
|
{
|
|
this.OOIMAEHGBIC = this.initiallyCoupledTool;
|
|
}
|
|
else
|
|
{
|
|
this.LJEOBJJDBHH();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002265 RID: 8805 RVA: 0x000A3054 File Offset: 0x000A1254
|
|
private void FCKANDCKHKL(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.BHCCHBHNHCG)
|
|
{
|
|
float sqrMagnitude = (ENBMEDIFBLM.transform.position - this.toolCouplingTransform.position).sqrMagnitude;
|
|
if (sqrMagnitude < this.couplingRadius * this.couplingRadius && this.GPHHLFIIDDI(ENBMEDIFBLM, false))
|
|
{
|
|
this.HMFLNMIIAIN(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002266 RID: 8806 RVA: 0x000A30B8 File Offset: 0x000A12B8
|
|
public bool CCBBLGAAGMM()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06002267 RID: 8807 RVA: 0x000A30BC File Offset: 0x000A12BC
|
|
public void HLHECPABBFN(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.GJONJNBEGHG != null)
|
|
{
|
|
Debug.LogErrorFormat(this, "Users press a physical button with their hand.", new object[] { base.gameObject });
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.GJONJNBEGHG = new GJONJNBEGHG();
|
|
if (this.FLNLOPGDPGG() != null)
|
|
{
|
|
PersistenceView component = this.CAKCFGPCFJN().GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.GJONJNBEGHG.FODAMKDJJHI(component.KCPBFNPGPNO().MDOELPMBEGJ());
|
|
}
|
|
else
|
|
{
|
|
string text = "Oculus.Platform.GetNextPurchaseListPage: List has no next page";
|
|
object[] array = new object[4];
|
|
array[0] = base.gameObject;
|
|
array[1] = this.HJOOPHJOCNA().gameObject;
|
|
Debug.LogFormat(this, text, array);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002268 RID: 8808 RVA: 0x000A316C File Offset: 0x000A136C
|
|
private bool NJGIPAINPML(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.NMGNIHCOCHL();
|
|
return !(ENBMEDIFBLM != null) || !(ENBMEDIFBLM != this.COMHEONOMBA) || BEJEENGIMJK || !ENBMEDIFBLM.NEONGIONACF || (!(tool == null) && !(tool == ENBMEDIFBLM)) || ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x17000097 RID: 151
|
|
// (get) Token: 0x06002269 RID: 8809 RVA: 0x000A31D8 File Offset: 0x000A13D8
|
|
public int DPGMALKFGBG
|
|
{
|
|
get
|
|
{
|
|
return int.MaxValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600226A RID: 8810 RVA: 0x000A31E0 File Offset: 0x000A13E0
|
|
private void AFNBFGBPHKD()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x0600226B RID: 8811 RVA: 0x000A3230 File Offset: 0x000A1430
|
|
public void MLLIHKEJMNE(Tool NOBAPCOKFIL)
|
|
{
|
|
this.DBJCFFNKIJK.MEAINJPIECA((!(NOBAPCOKFIL != null)) ? (-1) : NOBAPCOKFIL.HOPJELLOPNJ().OMNKKJNHJHD());
|
|
}
|
|
|
|
// Token: 0x0600226C RID: 8812 RVA: 0x000A325C File Offset: 0x000A145C
|
|
private void KEIGFOFOICG(Tool ENBMEDIFBLM)
|
|
{
|
|
if (this.HKNNHOJIAOP.Contains(ENBMEDIFBLM))
|
|
{
|
|
if (ENBMEDIFBLM == this.initiallyCoupledTool)
|
|
{
|
|
this.initiallyCoupledTool = null;
|
|
}
|
|
ENBMEDIFBLM.GFBCCFIMFEC -= this.HOJHGHJDHEC;
|
|
ENBMEDIFBLM.PLPIAOHJBOB -= this.EFLKGLEBHFM;
|
|
ENBMEDIFBLM.DOFOEEDKAAF -= this.KEIGFOFOICG;
|
|
this.HKNNHOJIAOP.Remove(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600226D RID: 8813 RVA: 0x000A32D8 File Offset: 0x000A14D8
|
|
private void HMJLPHDENEJ(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.EPDFICKADLC(ENBMEDIFBLM, true))
|
|
{
|
|
return;
|
|
}
|
|
if (ENBMEDIFBLM.OELHCGECBEA() != base.FJKPDEDGDJA() && ENBMEDIFBLM.IGIPCHFCFNN())
|
|
{
|
|
if (this.COMHEONOMBA.OHGPCMJMFGC)
|
|
{
|
|
ENBMEDIFBLM.HOPJELLOPNJ().EPPIGICCDBM(this.COMHEONOMBA.FFNAKFJPBOG().OPDLGJGHMJI);
|
|
}
|
|
else
|
|
{
|
|
base.CEGDLFAENEJ().TransferOwnership(ENBMEDIFBLM.OELHCGECBEA().BADMPMDONAH);
|
|
}
|
|
}
|
|
ENBMEDIFBLM.SetCollisionLayer((NILFAGNKNMH)(-102));
|
|
ENBMEDIFBLM.CADPGMLHFGH.EJKIKJAFNFB(this.COMHEONOMBA.CADPGMLHFGH, this.toolCouplingTransform.localPosition, this.toolCouplingTransform.localRotation);
|
|
}
|
|
|
|
// Token: 0x0600226E RID: 8814 RVA: 0x000A338C File Offset: 0x000A158C
|
|
private void IFJACOHECGE(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.IGIPCHFCFNN())
|
|
{
|
|
Tool tool = this.FLNLOPGDPGG();
|
|
if (tool != null && ENBMEDIFBLM == tool)
|
|
{
|
|
this.DIEJEKJGJKG(null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600226F RID: 8815 RVA: 0x000A33CC File Offset: 0x000A15CC
|
|
private void PGAMIAMGMCI(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.HKNNHOJIAOP.Contains(ENBMEDIFBLM) && ENBMEDIFBLM != this.COMHEONOMBA)
|
|
{
|
|
ENBMEDIFBLM.GFBCCFIMFEC += this.HOJHGHJDHEC;
|
|
ENBMEDIFBLM.PLPIAOHJBOB += this.FCKANDCKHKL;
|
|
ENBMEDIFBLM.DODKEKGDAOF(new Tool.FCJCFBDGJIM(this.GBBEIINDLAM));
|
|
this.HKNNHOJIAOP.Add(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002270 RID: 8816 RVA: 0x000A3440 File Offset: 0x000A1640
|
|
protected virtual void JHCLJIABPPJ()
|
|
{
|
|
base.FNNCEMJECLP();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "Hit", -1, IKCAJLLAFML.MASTER, new Action(this.DAIMMLBMDBP));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.OMJIAAPFLDD;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.HPNBJMJBPDG(new Tool.DJEMJNNFFAH(this.PGAMIAMGMCI));
|
|
}
|
|
|
|
// Token: 0x06002271 RID: 8817 RVA: 0x000A34D4 File Offset: 0x000A16D4
|
|
public void NBENLAAKDFL(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.BFIDGJNLGPA() != null)
|
|
{
|
|
string text = "CubeGrid";
|
|
object[] array = new object[0];
|
|
array[0] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.KKOOBCNEABK(new GJONJNBEGHG());
|
|
if (this.OOIMAEHGBIC != null)
|
|
{
|
|
PersistenceView component = this.NMGNIHCOCHL().GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.BFIDGJNLGPA().FODAMKDJJHI(component.HEIMFMFBLDA().MDOELPMBEGJ());
|
|
}
|
|
else
|
|
{
|
|
string text2 = "in";
|
|
object[] array2 = new object[5];
|
|
array2[0] = base.gameObject;
|
|
array2[1] = this.FLNLOPGDPGG().gameObject;
|
|
Debug.LogFormat(this, text2, array2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002272 RID: 8818 RVA: 0x000A3584 File Offset: 0x000A1784
|
|
protected virtual void KMEHAACNJAG()
|
|
{
|
|
base.IPAPMGBLCNF();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "]", -1, IKCAJLLAFML.MASTER_OR_AUTHORITY, new Action(this.NDMJEILINMF));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.OMJIAAPFLDD;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.ANBMJHAOKDO += this.PGAMIAMGMCI;
|
|
}
|
|
|
|
// Token: 0x06002273 RID: 8819 RVA: 0x000A3618 File Offset: 0x000A1818
|
|
private bool GPHHLFIIDDI(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool heldTool = this.OOIMAEHGBIC;
|
|
return !(ENBMEDIFBLM != null) || !(ENBMEDIFBLM != this.COMHEONOMBA) || BEJEENGIMJK || !ENBMEDIFBLM.NEONGIONACF || (!(heldTool == null) && !(heldTool == ENBMEDIFBLM)) || ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x06002274 RID: 8820 RVA: 0x000A3684 File Offset: 0x000A1884
|
|
private bool OCCMFOHNMOJ(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.HPLAKPFPICB();
|
|
return !(ENBMEDIFBLM != null) || !(ENBMEDIFBLM != this.COMHEONOMBA) || BEJEENGIMJK || !ENBMEDIFBLM.NEONGIONACF || (!(tool == null) && !(tool == ENBMEDIFBLM)) || ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x06002275 RID: 8821 RVA: 0x000A36F0 File Offset: 0x000A18F0
|
|
private void LHHIDPHOFHO(Tool ENBMEDIFBLM)
|
|
{
|
|
if (this.HKNNHOJIAOP.Contains(ENBMEDIFBLM))
|
|
{
|
|
if (ENBMEDIFBLM == this.initiallyCoupledTool)
|
|
{
|
|
this.initiallyCoupledTool = null;
|
|
}
|
|
ENBMEDIFBLM.GFBCCFIMFEC -= this.OAKMFEKAIGP;
|
|
ENBMEDIFBLM.PLPIAOHJBOB -= this.EAENECCJKOK;
|
|
ENBMEDIFBLM.PLEDIHHEKGA(new Tool.FCJCFBDGJIM(this.LNIPMFMEFBB));
|
|
this.HKNNHOJIAOP.Remove(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002276 RID: 8822 RVA: 0x000A376C File Offset: 0x000A196C
|
|
public void DeserializeFrom(JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
this.NPDOKOFGKPG = LJPJGMJDIKB;
|
|
}
|
|
|
|
// Token: 0x06002277 RID: 8823 RVA: 0x000A3778 File Offset: 0x000A1978
|
|
private void NLFAPALODGP(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.LKEJLOCACMB(ENBMEDIFBLM, false))
|
|
{
|
|
return;
|
|
}
|
|
if (ENBMEDIFBLM.LDEPFMNDDIC() != base.FJKPDEDGDJA() && ENBMEDIFBLM.GANDPDNCOKF())
|
|
{
|
|
if (this.COMHEONOMBA.OHGPCMJMFGC)
|
|
{
|
|
ENBMEDIFBLM.HOPJELLOPNJ().EPPIGICCDBM(this.COMHEONOMBA.PLLMPAPABJC.OPDLGJGHMJI);
|
|
}
|
|
else
|
|
{
|
|
base.OMNGGJICBBI.EPPIGICCDBM(ENBMEDIFBLM.KOODOPBILJF().BADMPMDONAH);
|
|
}
|
|
}
|
|
ENBMEDIFBLM.ONHHDMJGJOA(NILFAGNKNMH.DynamicPhysicsIgnoreEnemyAndPlayerPhysics);
|
|
ENBMEDIFBLM.CADPGMLHFGH.KOILDCAHBDK(this.COMHEONOMBA.CADPGMLHFGH, this.toolCouplingTransform.localPosition, this.toolCouplingTransform.localRotation);
|
|
}
|
|
|
|
// Token: 0x06002278 RID: 8824 RVA: 0x000A382C File Offset: 0x000A1A2C
|
|
public void DFKEMJONAPB(ref JENDPFGMLME LJPJGMJDIKB)
|
|
{
|
|
if (LJPJGMJDIKB.BFIDGJNLGPA() != null)
|
|
{
|
|
string text = "'Private Games' are now 'Custom Rooms'! Use the Custom Rooms button on the Home Screen...";
|
|
object[] array = new object[0];
|
|
array[1] = base.gameObject;
|
|
Debug.LogErrorFormat(this, text, array);
|
|
return;
|
|
}
|
|
LJPJGMJDIKB.IJPLPCCABOK(new GJONJNBEGHG());
|
|
if (this.FLNLOPGDPGG() != null)
|
|
{
|
|
PersistenceView component = this.OPJKBOEGOCN().GetComponent<PersistenceView>();
|
|
if (component != null)
|
|
{
|
|
LJPJGMJDIKB.BFIDGJNLGPA().DFCANDLLBIM(component.KCPBFNPGPNO().MDOELPMBEGJ());
|
|
}
|
|
else
|
|
{
|
|
string text2 = "Wireframe";
|
|
object[] array2 = new object[] { null, base.gameObject };
|
|
array2[1] = this.PCFAENAHCLB().gameObject;
|
|
Debug.LogFormat(this, text2, array2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002279 RID: 8825 RVA: 0x000A38DC File Offset: 0x000A1ADC
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "HELD_TOOL_ID", -1, IKCAJLLAFML.ANYONE, new Action(this.LJEOBJJDBHH));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.OOCDNDOPHHG;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.ANBMJHAOKDO += this.DIENFAEJAAD;
|
|
}
|
|
|
|
// Token: 0x0600227A RID: 8826 RVA: 0x000A3970 File Offset: 0x000A1B70
|
|
private void NGIJKFCODDI(Tool ENBMEDIFBLM, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
if (ENBMEDIFBLM.DGLKKANNBPD() && this.EPDFICKADLC(ENBMEDIFBLM, ENBMEDIFBLM.OHGPCMJMFGC))
|
|
{
|
|
this.OOIMAEHGBIC = ENBMEDIFBLM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600227B RID: 8827 RVA: 0x000A3998 File Offset: 0x000A1B98
|
|
private bool NIJFNEBBAEJ(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.PCFAENAHCLB();
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM != this.COMHEONOMBA && !BEJEENGIMJK && ENBMEDIFBLM.NEONGIONACF && (tool == null || tool == ENBMEDIFBLM) && ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x0600227D RID: 8829 RVA: 0x000A3A3C File Offset: 0x000A1C3C
|
|
protected virtual void DHKOHMJLFCA()
|
|
{
|
|
base.FNNCEMJECLP();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "Reward incoming...", -1, (IKCAJLLAFML)7, new Action(this.HEBCHHNFPEA));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.OOCDNDOPHHG;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.ANBMJHAOKDO += this.IDNLJGAKOCJ;
|
|
}
|
|
|
|
// Token: 0x0600227E RID: 8830 RVA: 0x000A3AD0 File Offset: 0x000A1CD0
|
|
private void HEBCHHNFPEA()
|
|
{
|
|
Tool tool = this.LCJIHDHAGMN();
|
|
if (tool != null)
|
|
{
|
|
this.BOIDCFFEAAG(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600227F RID: 8831 RVA: 0x000A3AF8 File Offset: 0x000A1CF8
|
|
private void IDNLJGAKOCJ(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.HKNNHOJIAOP.Contains(ENBMEDIFBLM) && ENBMEDIFBLM != this.COMHEONOMBA)
|
|
{
|
|
ENBMEDIFBLM.GFBCCFIMFEC += this.HOJHGHJDHEC;
|
|
ENBMEDIFBLM.PLPIAOHJBOB += this.JBICIFIJAOP;
|
|
ENBMEDIFBLM.DOFOEEDKAAF += this.LNIPMFMEFBB;
|
|
this.HKNNHOJIAOP.Add(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002280 RID: 8832 RVA: 0x000A3B6C File Offset: 0x000A1D6C
|
|
private void JHJEDGCDJPA(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.KPBMAKAAIOA(ENBMEDIFBLM, false))
|
|
{
|
|
return;
|
|
}
|
|
if (ENBMEDIFBLM.KLPIDJLDGOH() != base.LDEPFMNDDIC() && ENBMEDIFBLM.DGLOKLCEMLH())
|
|
{
|
|
if (this.COMHEONOMBA.OHGPCMJMFGC)
|
|
{
|
|
ENBMEDIFBLM.ACEAACJNNAF().CLBMDMJOEPH(this.COMHEONOMBA.HJLLJOGHFJC().AMAJCGADDCL());
|
|
}
|
|
else
|
|
{
|
|
base.LHEPJEHMAEC().CLBMDMJOEPH(ENBMEDIFBLM.OBFJBLCABAB().BADMPMDONAH);
|
|
}
|
|
}
|
|
ENBMEDIFBLM.SetCollisionLayer((NILFAGNKNMH)54);
|
|
ENBMEDIFBLM.CADPGMLHFGH.NKKCAKBEMGO(this.COMHEONOMBA.CADPGMLHFGH, this.toolCouplingTransform.localPosition, this.toolCouplingTransform.localRotation);
|
|
}
|
|
|
|
// Token: 0x06002281 RID: 8833 RVA: 0x000A3C20 File Offset: 0x000A1E20
|
|
protected virtual void LOMIACBDFOB()
|
|
{
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC -= this.LFLMOHNFBKI;
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.POJJFNOCIGE -= this.DMJEBOJLLIE;
|
|
}
|
|
foreach (Tool tool in new List<Tool>(this.HKNNHOJIAOP))
|
|
{
|
|
this.KEIGFOFOICG(tool);
|
|
}
|
|
Tool.ANBMJHAOKDO -= this.BJNKCPPEOJP;
|
|
base.KHMLCKHNNNJ();
|
|
}
|
|
|
|
// Token: 0x06002282 RID: 8834 RVA: 0x000A3CE8 File Offset: 0x000A1EE8
|
|
public Tool LCJIHDHAGMN()
|
|
{
|
|
PhotonView photonView = PhotonView.Find(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x06002283 RID: 8835 RVA: 0x000A3D20 File Offset: 0x000A1F20
|
|
protected virtual void AMIPFPHADGM()
|
|
{
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC -= this.OMJIAAPFLDD;
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.POJJFNOCIGE -= this.JIPGMINHPPC;
|
|
}
|
|
foreach (Tool tool in new List<Tool>(this.HKNNHOJIAOP))
|
|
{
|
|
this.LNIPMFMEFBB(tool);
|
|
}
|
|
Tool.ANBMJHAOKDO -= this.BJNKCPPEOJP;
|
|
base.JDBELFHCDHB();
|
|
}
|
|
|
|
// Token: 0x06002284 RID: 8836 RVA: 0x000A3DE8 File Offset: 0x000A1FE8
|
|
public Tool FLNLOPGDPGG()
|
|
{
|
|
PhotonView photonView = PhotonView.KAKDEOHCKBM(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x06002285 RID: 8837 RVA: 0x000A3E20 File Offset: 0x000A2020
|
|
protected virtual void BOOMNFIGOAN()
|
|
{
|
|
base.MPIHCILBGLM();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "DEFEND IT!", -1, IKCAJLLAFML.MASTER, new Action(this.NDMJEILINMF));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.DFODCDEMCNK;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.HPNBJMJBPDG(new Tool.DJEMJNNFFAH(this.BJNKCPPEOJP));
|
|
}
|
|
|
|
// Token: 0x06002286 RID: 8838 RVA: 0x000A3EB4 File Offset: 0x000A20B4
|
|
public bool JFBOPOAHLIF()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06002287 RID: 8839 RVA: 0x000A3EB8 File Offset: 0x000A20B8
|
|
public int HNLGENNENDK()
|
|
{
|
|
return -35;
|
|
}
|
|
|
|
// Token: 0x06002288 RID: 8840 RVA: 0x000A3EC0 File Offset: 0x000A20C0
|
|
private void DFODCDEMCNK(Tool ENBMEDIFBLM)
|
|
{
|
|
Tool tool = this.NMGNIHCOCHL();
|
|
if (tool != null && tool.HPPGIHDFCHK() != base.HKLENNJOICH)
|
|
{
|
|
tool.OMNGGJICBBI.CLBMDMJOEPH(base.HBILHLFAGPG().BADMPMDONAH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002289 RID: 8841 RVA: 0x000A3F08 File Offset: 0x000A2108
|
|
private void LFLMOHNFBKI(Tool ENBMEDIFBLM)
|
|
{
|
|
Tool tool = this.LCJIHDHAGMN();
|
|
if (tool != null && tool.HPPGIHDFCHK() != base.ALKNHNDOPMF())
|
|
{
|
|
tool.HOPJELLOPNJ().TransferOwnership(base.LDEPFMNDDIC().BADMPMDONAH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600228A RID: 8842 RVA: 0x000A3F50 File Offset: 0x000A2150
|
|
public Tool OPJKBOEGOCN()
|
|
{
|
|
PhotonView photonView = PhotonView.KAKDEOHCKBM(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x0600228B RID: 8843 RVA: 0x000A3F88 File Offset: 0x000A2188
|
|
private void OAKMFEKAIGP(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.DGLOKLCEMLH())
|
|
{
|
|
Tool tool = this.HJOOPHJOCNA();
|
|
if (tool != null && ENBMEDIFBLM == tool)
|
|
{
|
|
this.HMFLNMIIAIN(null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600228C RID: 8844 RVA: 0x000A3FC8 File Offset: 0x000A21C8
|
|
public bool JIGMDPLINBG()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600228D RID: 8845 RVA: 0x000A3FCC File Offset: 0x000A21CC
|
|
private bool GBNJHHONJBA(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool tool = this.NMGNIHCOCHL();
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM != this.COMHEONOMBA && !BEJEENGIMJK && ENBMEDIFBLM.NEONGIONACF && (tool == null || tool == ENBMEDIFBLM) && ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x0600228E RID: 8846 RVA: 0x000A4038 File Offset: 0x000A2238
|
|
private bool JLBJEENDPBE(Tool ENBMEDIFBLM, bool BEJEENGIMJK)
|
|
{
|
|
Tool heldTool = this.OOIMAEHGBIC;
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM != this.COMHEONOMBA && !BEJEENGIMJK && ENBMEDIFBLM.NEONGIONACF && (heldTool == null || heldTool == ENBMEDIFBLM) && ENBMEDIFBLM.GEONLHPMMPG == null;
|
|
}
|
|
|
|
// Token: 0x0600228F RID: 8847 RVA: 0x000A40A4 File Offset: 0x000A22A4
|
|
private void GMBILIOIIAA()
|
|
{
|
|
Tool tool = this.HPLAKPFPICB();
|
|
if (tool != null)
|
|
{
|
|
this.HMJLPHDENEJ(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002290 RID: 8848 RVA: 0x000A40CC File Offset: 0x000A22CC
|
|
protected virtual void CADJBBNKFIL()
|
|
{
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC -= this.OOCDNDOPHHG;
|
|
}
|
|
if (this.initiallyCoupledTool != null)
|
|
{
|
|
this.initiallyCoupledTool.POJJFNOCIGE -= this.DLAFBMNDAAE;
|
|
}
|
|
foreach (Tool tool in new List<Tool>(this.HKNNHOJIAOP))
|
|
{
|
|
this.DKIDEMNALJF(tool);
|
|
}
|
|
Tool.ANBMJHAOKDO -= this.DIENFAEJAAD;
|
|
base.AECBOJELNAI();
|
|
}
|
|
|
|
// Token: 0x06002291 RID: 8849 RVA: 0x000A4194 File Offset: 0x000A2394
|
|
private void DAIMMLBMDBP()
|
|
{
|
|
Tool tool = this.CAKCFGPCFJN();
|
|
if (tool != null)
|
|
{
|
|
this.JHJEDGCDJPA(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002292 RID: 8850 RVA: 0x000A41BC File Offset: 0x000A23BC
|
|
private void GHCFLOFEHHF(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.DGLKKANNBPD())
|
|
{
|
|
float sqrMagnitude = (ENBMEDIFBLM.transform.position - this.toolCouplingTransform.position).sqrMagnitude;
|
|
if (sqrMagnitude < this.couplingRadius * this.couplingRadius && this.LKEJLOCACMB(ENBMEDIFBLM, true))
|
|
{
|
|
this.MLLIHKEJMNE(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002293 RID: 8851 RVA: 0x000A4220 File Offset: 0x000A2420
|
|
private void OnDrawGizmos()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x06002294 RID: 8852 RVA: 0x000A4270 File Offset: 0x000A2470
|
|
protected virtual void BIOPLCKCFFL()
|
|
{
|
|
base.MICFHMAIGIB();
|
|
this.DBJCFFNKIJK = new LHLLJPPCDKA<int>(this, "RpcApplyAttack", -1, (IKCAJLLAFML)4, new Action(this.CFNAGJFPAAD));
|
|
this.COMHEONOMBA = base.GetComponent<Tool>();
|
|
if (this.COMHEONOMBA != null)
|
|
{
|
|
this.COMHEONOMBA.GFBCCFIMFEC += this.OOCDNDOPHHG;
|
|
}
|
|
if (this.toolCouplingTransform == null)
|
|
{
|
|
this.toolCouplingTransform = base.transform;
|
|
}
|
|
Tool.HPNBJMJBPDG(new Tool.DJEMJNNFFAH(this.PGAMIAMGMCI));
|
|
}
|
|
|
|
// Token: 0x06002295 RID: 8853 RVA: 0x000A4304 File Offset: 0x000A2504
|
|
private void KFLEIJNGEFG()
|
|
{
|
|
Gizmos.color = Color.cyan;
|
|
Vector3 vector = ((!(this.toolCouplingTransform != null)) ? base.transform.position : this.toolCouplingTransform.position);
|
|
Gizmos.DrawWireSphere(vector, this.couplingRadius);
|
|
}
|
|
|
|
// Token: 0x06002296 RID: 8854 RVA: 0x000A4354 File Offset: 0x000A2554
|
|
private void LKNCGAAPBCI(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.IGIPCHFCFNN())
|
|
{
|
|
Tool tool = this.HPLAKPFPICB();
|
|
if (tool != null && ENBMEDIFBLM == tool)
|
|
{
|
|
this.MLLIHKEJMNE(null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002297 RID: 8855 RVA: 0x000A4394 File Offset: 0x000A2594
|
|
private void CFNAGJFPAAD()
|
|
{
|
|
Tool tool = this.HJOOPHJOCNA();
|
|
if (tool != null)
|
|
{
|
|
this.BOIDCFFEAAG(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002299 RID: 8857 RVA: 0x000A43DC File Offset: 0x000A25DC
|
|
private void GBBEIINDLAM(Tool ENBMEDIFBLM)
|
|
{
|
|
if (this.HKNNHOJIAOP.Contains(ENBMEDIFBLM))
|
|
{
|
|
if (ENBMEDIFBLM == this.initiallyCoupledTool)
|
|
{
|
|
this.initiallyCoupledTool = null;
|
|
}
|
|
ENBMEDIFBLM.GFBCCFIMFEC -= this.OAKMFEKAIGP;
|
|
ENBMEDIFBLM.PLPIAOHJBOB -= this.GHCFLOFEHHF;
|
|
ENBMEDIFBLM.DOFOEEDKAAF -= this.LHHIDPHOFHO;
|
|
this.HKNNHOJIAOP.Remove(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600229A RID: 8858 RVA: 0x000A4458 File Offset: 0x000A2658
|
|
private void JKELAGKOHIB(Tool ENBMEDIFBLM, Vector3 GPLIJKCIELE, Quaternion BJEPFIKAIAD, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
if (ENBMEDIFBLM.DGLKKANNBPD() && this.GBNJHHONJBA(ENBMEDIFBLM, ENBMEDIFBLM.OHGPCMJMFGC))
|
|
{
|
|
this.MLLIHKEJMNE(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600229B RID: 8859 RVA: 0x000A4480 File Offset: 0x000A2680
|
|
public Tool PCFAENAHCLB()
|
|
{
|
|
PhotonView photonView = PhotonView.Find(this.DBJCFFNKIJK.CPIBGJLHLBL());
|
|
return (!(photonView != null)) ? null : photonView.GetComponent<Tool>();
|
|
}
|
|
|
|
// Token: 0x0600229C RID: 8860 RVA: 0x000A44B8 File Offset: 0x000A26B8
|
|
private void DIENFAEJAAD(Tool ENBMEDIFBLM)
|
|
{
|
|
if (!this.HKNNHOJIAOP.Contains(ENBMEDIFBLM) && ENBMEDIFBLM != this.COMHEONOMBA)
|
|
{
|
|
ENBMEDIFBLM.GFBCCFIMFEC += this.HOJHGHJDHEC;
|
|
ENBMEDIFBLM.PLPIAOHJBOB += this.EFLKGLEBHFM;
|
|
ENBMEDIFBLM.DOFOEEDKAAF += this.KEIGFOFOICG;
|
|
this.HKNNHOJIAOP.Add(ENBMEDIFBLM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000474 RID: 1140
|
|
[SerializeField]
|
|
private Transform toolCouplingTransform;
|
|
|
|
// Token: 0x04000475 RID: 1141
|
|
[SerializeField]
|
|
private float couplingRadius = 0.2f;
|
|
|
|
// Token: 0x04000476 RID: 1142
|
|
[SerializeField]
|
|
private Tool initiallyCoupledTool;
|
|
|
|
// Token: 0x04000477 RID: 1143
|
|
private Tool COMHEONOMBA;
|
|
|
|
// Token: 0x04000478 RID: 1144
|
|
private LHLLJPPCDKA<int> DBJCFFNKIJK;
|
|
|
|
// Token: 0x04000479 RID: 1145
|
|
private readonly HashSet<Tool> HKNNHOJIAOP = new HashSet<Tool>();
|
|
|
|
// Token: 0x0400047A RID: 1146
|
|
private JENDPFGMLME NPDOKOFGKPG;
|
|
}
|