699 lines
22 KiB
C#
699 lines
22 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Photon;
|
|
using RecNet;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000CD3 RID: 3283
|
|
[RequireComponent(typeof(Tool))]
|
|
public class PlayerMinitar : global::Photon.MonoBehaviour
|
|
{
|
|
// Token: 0x0601A67C RID: 108156 RVA: 0x0075EE58 File Offset: 0x0075D058
|
|
private void IBFMMCLHHLL()
|
|
{
|
|
if (this.GJLCBGPGIGN())
|
|
{
|
|
this.NOHMOBFFALM = false;
|
|
if (this.PBCJBEPKBPJ != null)
|
|
{
|
|
this.PBCJBEPKBPJ.NMPMNBCNGBE.KEFGBIJIBCD -= this.LJJPAJDDMKC;
|
|
this.PBCJBEPKBPJ.MOEABJNNBLK().BPMFKBMMOFF(new Action<Color>(this.GNCJKPDBGEN));
|
|
}
|
|
this.PNPLMCHPNLO();
|
|
FKJHLNJDEKK.NOFHHJGIGBC(new FKJHLNJDEKK.ECKFOOPPIMO(this.OOHFAEDELKN));
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000C04 RID: 3076
|
|
// (get) Token: 0x0601A67D RID: 108157 RVA: 0x0075EED8 File Offset: 0x0075D0D8
|
|
// (set) Token: 0x0601A68D RID: 108173 RVA: 0x0075F8AC File Offset: 0x0075DAAC
|
|
public Tool BKDFLNGCINH { get; private set; }
|
|
|
|
// Token: 0x17000C05 RID: 3077
|
|
// (get) Token: 0x0601A683 RID: 108163 RVA: 0x0075F288 File Offset: 0x0075D488
|
|
// (set) Token: 0x0601A67E RID: 108158 RVA: 0x0075EEE0 File Offset: 0x0075D0E0
|
|
public Player PBCJBEPKBPJ
|
|
{
|
|
get
|
|
{
|
|
return this.MCFIJNEEIIC;
|
|
}
|
|
set
|
|
{
|
|
this.PNPLMCHPNLO();
|
|
if (this.MCFIJNEEIIC != null)
|
|
{
|
|
this.NGLMGOMCJMO();
|
|
}
|
|
this.MCFIJNEEIIC = value;
|
|
if (this.MCFIJNEEIIC != null)
|
|
{
|
|
this.NNLLHPPIFMP();
|
|
}
|
|
else if (this.NHDDPGADJPJ)
|
|
{
|
|
this.BKDFLNGCINH.NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A67F RID: 108159 RVA: 0x0075EF44 File Offset: 0x0075D144
|
|
private void GNCJKPDBGEN(Color INNGECIOBOO)
|
|
{
|
|
if (this.PBCJBEPKBPJ != null && this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL != null)
|
|
{
|
|
this.faceMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
this.torsoMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
this.leftHandMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
this.rightHandMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
this.rightHandPointingMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
this.leftHandPointingMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A680 RID: 108160 RVA: 0x0075F058 File Offset: 0x0075D258
|
|
private void LateUpdate()
|
|
{
|
|
if (this.NHDDPGADJPJ && this.localPivot.gameObject.activeSelf)
|
|
{
|
|
if (this.PBCJBEPKBPJ != null)
|
|
{
|
|
bool displayAsIgnored = this.PBCJBEPKBPJ.OFAHEPODABI;
|
|
if (this.BKDFLNGCINH.IIEGGLHMOBH && !displayAsIgnored)
|
|
{
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.BGOGBEPJGPJ.transform, this.head);
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.NGFPOMIFLMF.transform, this.body);
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.BGIBHPOALJG.transform, this.leftHand);
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.KEJBPANGFKK.transform, this.rightHand);
|
|
this.PAOFABOMPNG(this.PBCJBEPKBPJ.NMPMNBCNGBE.FLFHNDENDPD, this.rightHandMesh);
|
|
this.PAOFABOMPNG(this.PBCJBEPKBPJ.NMPMNBCNGBE.CMLDAAGPONI, this.leftHandMesh);
|
|
this.eyesMesh.SetPropertyBlock(this.OOGBLBOBNNI.CAEBDBEADMH.MaterialProperties);
|
|
this.mouthMesh.SetPropertyBlock(this.OOGBLBOBNNI.KPKIAGJHELK.MaterialProperties);
|
|
if (!this.PBCJBEPKBPJ.NHDDPGADJPJ)
|
|
{
|
|
this.NFOHJAKLGDK();
|
|
}
|
|
Vector3 localPosition = this.localPivot.localPosition;
|
|
localPosition.y = this.FCCDMLABGGI - this.head.localPosition.y;
|
|
this.localPivot.localPosition = localPosition;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.PBCJBEPKBPJ = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A681 RID: 108161 RVA: 0x0075F1F4 File Offset: 0x0075D3F4
|
|
private void OnEnable()
|
|
{
|
|
if (this.NHDDPGADJPJ)
|
|
{
|
|
this.Refresh();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A682 RID: 108162 RVA: 0x0075F208 File Offset: 0x0075D408
|
|
private void OJIECBEJFDB()
|
|
{
|
|
if (this.CFPNNAADNJF())
|
|
{
|
|
this.NOHMOBFFALM = false;
|
|
if (this.PBCJBEPKBPJ != null)
|
|
{
|
|
this.PBCJBEPKBPJ.MOEABJNNBLK().KEFGBIJIBCD -= this.LJJPAJDDMKC;
|
|
this.PBCJBEPKBPJ.ELADFPJEEJO().ICJFKINEOAE -= this.GNCJKPDBGEN;
|
|
}
|
|
this.PNPLMCHPNLO();
|
|
FKJHLNJDEKK.NOFHHJGIGBC(new FKJHLNJDEKK.ECKFOOPPIMO(this.OOHFAEDELKN));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A684 RID: 108164 RVA: 0x0075F290 File Offset: 0x0075D490
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.BKDFLNGCINH = base.GetComponent<Tool>();
|
|
if (this.BKDFLNGCINH == null)
|
|
{
|
|
Debug.LogError(base.name + " is missing a tool component.");
|
|
}
|
|
else
|
|
{
|
|
this.BKDFLNGCINH.GGMKHKNDOND += this.BNBNAHOFHBC;
|
|
object obj;
|
|
if (this.BKDFLNGCINH.OAEPDOMEFGP != null && this.BKDFLNGCINH.OAEPDOMEFGP.TryGetValue("Scale", out obj))
|
|
{
|
|
base.transform.localScale = (Vector3)obj;
|
|
}
|
|
}
|
|
this.localPivot.gameObject.SetActive(this.NHDDPGADJPJ);
|
|
this.remotePivot.gameObject.SetActive(!this.NHDDPGADJPJ);
|
|
this.FCCDMLABGGI = this.head.transform.localPosition.y;
|
|
}
|
|
|
|
// Token: 0x0601A685 RID: 108165 RVA: 0x0075F37C File Offset: 0x0075D57C
|
|
public static PlayerMinitar Instantiate(Player JEFGMHBLLKI, Transform EDIBCGNFFEL, float KJIICGKHGHJ)
|
|
{
|
|
Dictionary<string, object> dictionary = new Dictionary<string, object>
|
|
{
|
|
{
|
|
"Scale",
|
|
Vector3.one * KJIICGKHGHJ
|
|
},
|
|
{
|
|
"Owner",
|
|
IHFKMIAHBFP.JEFGMHBLLKI.BADMPMDONAH
|
|
},
|
|
{ "Purpose", 1 }
|
|
};
|
|
Vector3 position = EDIBCGNFFEL.position;
|
|
Quaternion quaternion = EDIBCGNFFEL.rotation * Quaternion.AngleAxis(180f, EDIBCGNFFEL.up);
|
|
Tool tool = Tool.PhotonInstantiate("[PlayerMinitar]", position, quaternion, -1, dictionary);
|
|
PlayerMinitar playerMinitar = ((!(tool != null)) ? null : tool.GetComponent<PlayerMinitar>());
|
|
if (playerMinitar != null)
|
|
{
|
|
PlayerSpawnedEquipment component = playerMinitar.GetComponent<PlayerSpawnedEquipment>();
|
|
if (component != null)
|
|
{
|
|
component.SetProxyTransform(EDIBCGNFFEL, position, quaternion);
|
|
}
|
|
if (JEFGMHBLLKI != null)
|
|
{
|
|
playerMinitar.PBCJBEPKBPJ = JEFGMHBLLKI;
|
|
}
|
|
}
|
|
return playerMinitar;
|
|
}
|
|
|
|
// Token: 0x0601A687 RID: 108167 RVA: 0x0075F480 File Offset: 0x0075D680
|
|
private void JNFFOJHGEDL(OutfitItem JHAENEHNJON)
|
|
{
|
|
SkinnedMeshRenderer skinnedMeshRenderer = null;
|
|
OutfitManager.AFPKFANHPHO type = JHAENEHNJON.Type;
|
|
switch (type)
|
|
{
|
|
case OutfitManager.AFPKFANHPHO.Neck:
|
|
case OutfitManager.AFPKFANHPHO.Shirt:
|
|
case OutfitManager.AFPKFANHPHO.Belt:
|
|
case OutfitManager.AFPKFANHPHO.Pocket:
|
|
case OutfitManager.AFPKFANHPHO.TeamJersey:
|
|
skinnedMeshRenderer = this.torsoMesh;
|
|
break;
|
|
default:
|
|
switch (type)
|
|
{
|
|
case OutfitManager.AFPKFANHPHO.Wrist:
|
|
case OutfitManager.AFPKFANHPHO.Glove:
|
|
case OutfitManager.AFPKFANHPHO.Watch:
|
|
case OutfitManager.AFPKFANHPHO.TeamWrist:
|
|
if (JHAENEHNJON.CurrentBodyPart == Player.HDOICGIKKAO.LeftHand)
|
|
{
|
|
skinnedMeshRenderer = this.leftHandMesh;
|
|
}
|
|
else if (JHAENEHNJON.CurrentBodyPart == Player.HDOICGIKKAO.RightHand)
|
|
{
|
|
skinnedMeshRenderer = this.rightHandMesh;
|
|
}
|
|
else
|
|
{
|
|
Debug.LogError(string.Concat(new object[] { "An outfit (", JHAENEHNJON, ") with hand type is being placed to an incorrect body part. ", JHAENEHNJON.CurrentBodyPart }));
|
|
}
|
|
break;
|
|
default:
|
|
switch (type)
|
|
{
|
|
case OutfitManager.AFPKFANHPHO.Hat:
|
|
case OutfitManager.AFPKFANHPHO.BackHead:
|
|
case OutfitManager.AFPKFANHPHO.Hair:
|
|
skinnedMeshRenderer = this.faceMesh;
|
|
break;
|
|
default:
|
|
if (type != OutfitManager.AFPKFANHPHO.Eye)
|
|
{
|
|
if (type != OutfitManager.AFPKFANHPHO.Mouth)
|
|
{
|
|
throw new Exception("PlayerOutfit.SetOutfitTarget can not set target for this outfit " + JHAENEHNJON);
|
|
}
|
|
skinnedMeshRenderer = this.mouthMesh;
|
|
}
|
|
else
|
|
{
|
|
skinnedMeshRenderer = this.eyesMesh;
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
JHAENEHNJON.SetTargetSkinnedMesh(skinnedMeshRenderer);
|
|
}
|
|
|
|
// Token: 0x0601A688 RID: 108168 RVA: 0x0075F5A8 File Offset: 0x0075D7A8
|
|
private void NNLLHPPIFMP()
|
|
{
|
|
if (this.NHDDPGADJPJ)
|
|
{
|
|
this.BKDFLNGCINH.NIINOABKAPJ = true;
|
|
this.PBCJBEPKBPJ.NMPMNBCNGBE.KEFGBIJIBCD += this.LJJPAJDDMKC;
|
|
this.PBCJBEPKBPJ.NMPMNBCNGBE.ICJFKINEOAE += this.GNCJKPDBGEN;
|
|
this.OOGBLBOBNNI = this.PBCJBEPKBPJ.BGOGBEPJGPJ.GetComponent<PlayerFacialAnimator>();
|
|
this.GOMCLKPEGBG = this.PBCJBEPKBPJ.BGOGBEPJGPJ.GetComponentInChildren<VoiceLinesController2D>();
|
|
FKJHLNJDEKK.PNCMLPIPGEG += this.OOHFAEDELKN;
|
|
this.LJJPAJDDMKC();
|
|
this.GNCJKPDBGEN(Color.white);
|
|
this.Refresh();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A689 RID: 108169 RVA: 0x0075F658 File Offset: 0x0075D858
|
|
private void PGIPDKOKAHH()
|
|
{
|
|
if (this.NMDPPKDGAJN() && this.localPivot.gameObject.activeSelf)
|
|
{
|
|
if (this.PBCJBEPKBPJ != null)
|
|
{
|
|
bool displayAsIgnored = this.PBCJBEPKBPJ.OFAHEPODABI;
|
|
if (this.BKDFLNGCINH.IIEGGLHMOBH && !displayAsIgnored)
|
|
{
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.BGOGBEPJGPJ.transform, this.head);
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.NGFPOMIFLMF.transform, this.body);
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.BGIBHPOALJG.transform, this.leftHand);
|
|
this.BHMGEHEGNLF(this.PBCJBEPKBPJ.KEJBPANGFKK.transform, this.rightHand);
|
|
this.PAOFABOMPNG(this.PBCJBEPKBPJ.ELADFPJEEJO().FLFHNDENDPD, this.rightHandMesh);
|
|
this.LEFPIPNOPJI(this.PBCJBEPKBPJ.NMPMNBCNGBE.NHEMMGHKIJJ(), this.leftHandMesh);
|
|
this.eyesMesh.SetPropertyBlock(this.OOGBLBOBNNI.MCJLOLAPDLI().ABFEAHAONPK());
|
|
this.mouthMesh.SetPropertyBlock(this.OOGBLBOBNNI.DJCPPEFLPOL().IPNEFLFJOGE());
|
|
if (!this.PBCJBEPKBPJ.EEHCAMCMPAG())
|
|
{
|
|
this.NFOHJAKLGDK();
|
|
}
|
|
Vector3 localPosition = this.localPivot.localPosition;
|
|
localPosition.y = this.FCCDMLABGGI - this.head.localPosition.y;
|
|
this.localPivot.localPosition = localPosition;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.PBCJBEPKBPJ = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A68A RID: 108170 RVA: 0x0075F7F4 File Offset: 0x0075D9F4
|
|
private void BHMGEHEGNLF(Transform ECFENKBBJOK, Transform NKJECDCGCOL)
|
|
{
|
|
Vector3 vector = this.PBCJBEPKBPJ.BGOGBEPJGPJ.transform.InverseTransformPoint(ECFENKBBJOK.position);
|
|
Quaternion quaternion = this.PBCJBEPKBPJ.BGOGBEPJGPJ.transform.MCKNNGGGBDG(ECFENKBBJOK.rotation);
|
|
NKJECDCGCOL.position = this.head.TransformPoint(vector);
|
|
NKJECDCGCOL.rotation = this.head.PAFJLHMDIMO(quaternion);
|
|
}
|
|
|
|
// Token: 0x0601A68B RID: 108171 RVA: 0x0075F860 File Offset: 0x0075DA60
|
|
protected override void OnDestroy()
|
|
{
|
|
this.PBCJBEPKBPJ = null;
|
|
if (this.BKDFLNGCINH != null)
|
|
{
|
|
this.BKDFLNGCINH.GGMKHKNDOND -= this.BNBNAHOFHBC;
|
|
}
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0601A68C RID: 108172 RVA: 0x0075F898 File Offset: 0x0075DA98
|
|
private void EFLPAJLJBAH()
|
|
{
|
|
if (this.HKDNGBPNDDD())
|
|
{
|
|
this.Refresh();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A68E RID: 108174 RVA: 0x0075F8B8 File Offset: 0x0075DAB8
|
|
private void JMENFFAHDHG()
|
|
{
|
|
if (this.NHDDPGADJPJ)
|
|
{
|
|
this.NOHMOBFFALM = false;
|
|
if (this.PBCJBEPKBPJ != null)
|
|
{
|
|
this.PBCJBEPKBPJ.NMPMNBCNGBE.KEFGBIJIBCD -= this.LJJPAJDDMKC;
|
|
this.PBCJBEPKBPJ.NMPMNBCNGBE.ICJFKINEOAE -= this.GJHFICNHEJI;
|
|
}
|
|
this.PNPLMCHPNLO();
|
|
FKJHLNJDEKK.PNCMLPIPGEG -= this.OOHFAEDELKN;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A68F RID: 108175 RVA: 0x0075F938 File Offset: 0x0075DB38
|
|
private void BNBNAHOFHBC(bool CMHBICCKNEG, bool EOJKHKDGDNE)
|
|
{
|
|
this.Refresh();
|
|
}
|
|
|
|
// Token: 0x0601A690 RID: 108176 RVA: 0x0075F940 File Offset: 0x0075DB40
|
|
public void Refresh()
|
|
{
|
|
if (this.PBCJBEPKBPJ != null && this.NHDDPGADJPJ)
|
|
{
|
|
bool isVisible = this.BKDFLNGCINH.IIEGGLHMOBH;
|
|
this.labelMesh.material = this.PBCJBEPKBPJ.POJAICMNOFI.MLIEMMILMGI.material;
|
|
this.HOGGJMEKJFA(this.PBCJBEPKBPJ.BGIBHPOALJG, true);
|
|
this.HOGGJMEKJFA(this.PBCJBEPKBPJ.KEJBPANGFKK, true);
|
|
bool displayAsIgnored = this.PBCJBEPKBPJ.OFAHEPODABI;
|
|
this.localPivot.gameObject.SetActive(!displayAsIgnored && isVisible);
|
|
foreach (OutfitItem outfitItem in this.IOGPKBDNHHN)
|
|
{
|
|
outfitItem.MBMGPJOHAGB = !displayAsIgnored && isVisible;
|
|
}
|
|
this.eyesMesh.gameObject.SetActive(!displayAsIgnored);
|
|
this.mouthMesh.gameObject.SetActive(!displayAsIgnored);
|
|
this.identityRoot.gameObject.SetActive(isVisible);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A691 RID: 108177 RVA: 0x0075FA70 File Offset: 0x0075DC70
|
|
private void GJHFICNHEJI(Color INNGECIOBOO)
|
|
{
|
|
if (this.PBCJBEPKBPJ != null && this.PBCJBEPKBPJ.MOEABJNNBLK().LANLCJKDHPL != null)
|
|
{
|
|
this.faceMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
this.torsoMesh.material.color = this.PBCJBEPKBPJ.MOEABJNNBLK().LANLCJKDHPL.color;
|
|
this.leftHandMesh.material.color = this.PBCJBEPKBPJ.MOEABJNNBLK().LANLCJKDHPL.color;
|
|
this.rightHandMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
this.rightHandPointingMesh.material.color = this.PBCJBEPKBPJ.MOEABJNNBLK().LANLCJKDHPL.color;
|
|
this.leftHandPointingMesh.material.color = this.PBCJBEPKBPJ.NMPMNBCNGBE.LANLCJKDHPL.color;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A692 RID: 108178 RVA: 0x0075FB84 File Offset: 0x0075DD84
|
|
private void HOGGJMEKJFA(PlayerHand GAEKGDCFOJM, bool GEDMDJHCOLO = false)
|
|
{
|
|
bool flag = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? this.JEEKKAMIDCP : this.HGGPIEOGJIH);
|
|
bool menuHandVisible = GAEKGDCFOJM.ANGJJOCHMEF;
|
|
if (flag != menuHandVisible || GEDMDJHCOLO)
|
|
{
|
|
SkinnedMeshRenderer skinnedMeshRenderer = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? this.rightHandMesh : this.leftHandMesh);
|
|
Renderer renderer = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? this.rightHandPointingMesh : this.leftHandPointingMesh);
|
|
Player.HDOICGIKKAO hdoicgikkao = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? Player.HDOICGIKKAO.RightHand : Player.HDOICGIKKAO.LeftHand);
|
|
skinnedMeshRenderer.gameObject.SetActive(!menuHandVisible);
|
|
renderer.gameObject.SetActive(menuHandVisible);
|
|
foreach (OutfitItem outfitItem in this.IOGPKBDNHHN)
|
|
{
|
|
if (outfitItem.CurrentBodyPart == hdoicgikkao)
|
|
{
|
|
outfitItem.HEGHBOOMIOG = !menuHandVisible;
|
|
}
|
|
}
|
|
if (GAEKGDCFOJM.EEAOGJHMFII == PlayerHand.HMMEBFHABKA.Left)
|
|
{
|
|
this.HGGPIEOGJIH = menuHandVisible;
|
|
}
|
|
else
|
|
{
|
|
this.JEEKKAMIDCP = menuHandVisible;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A693 RID: 108179 RVA: 0x0075FCAC File Offset: 0x0075DEAC
|
|
private void PNPLMCHPNLO()
|
|
{
|
|
if (this.IOGPKBDNHHN != null && this.IOGPKBDNHHN.Count > 0)
|
|
{
|
|
for (int i = 0; i < this.IOGPKBDNHHN.Count; i++)
|
|
{
|
|
this.BKDFLNGCINH.TryRemoveRenderer(this.IOGPKBDNHHN[i].SkinnedMeshRenderer);
|
|
if (this.IOGPKBDNHHN[i] != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.IOGPKBDNHHN[i].gameObject);
|
|
}
|
|
}
|
|
this.IOGPKBDNHHN.Clear();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A694 RID: 108180 RVA: 0x0075FD48 File Offset: 0x0075DF48
|
|
private void NFOHJAKLGDK()
|
|
{
|
|
if (this.GOMCLKPEGBG != null && !this.PBCJBEPKBPJ.NHDDPGADJPJ)
|
|
{
|
|
this.BHMGEHEGNLF(this.GOMCLKPEGBG.transform, this.voiceLinesHeadAnchor);
|
|
this.BHMGEHEGNLF(this.GOMCLKPEGBG.CBLMKMAPMHH.transform, this.voiceLinesAnchor);
|
|
for (int i = 0; i < this.GOMCLKPEGBG.CBLMKMAPMHH.childCount; i++)
|
|
{
|
|
Transform child = this.GOMCLKPEGBG.CBLMKMAPMHH.GetChild(i);
|
|
bool activeSelf = child.gameObject.activeSelf;
|
|
Transform child2 = this.voiceLinesAnchor.GetChild(i);
|
|
child2.gameObject.SetActive(activeSelf);
|
|
if (activeSelf)
|
|
{
|
|
this.BHMGEHEGNLF(child, child2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A695 RID: 108181 RVA: 0x0075FE10 File Offset: 0x0075E010
|
|
private void NGLMGOMCJMO()
|
|
{
|
|
if (this.NHDDPGADJPJ)
|
|
{
|
|
this.NOHMOBFFALM = false;
|
|
if (this.PBCJBEPKBPJ != null)
|
|
{
|
|
this.PBCJBEPKBPJ.NMPMNBCNGBE.KEFGBIJIBCD -= this.LJJPAJDDMKC;
|
|
this.PBCJBEPKBPJ.NMPMNBCNGBE.ICJFKINEOAE -= this.GNCJKPDBGEN;
|
|
}
|
|
this.PNPLMCHPNLO();
|
|
FKJHLNJDEKK.PNCMLPIPGEG -= this.OOHFAEDELKN;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A696 RID: 108182 RVA: 0x0075FE90 File Offset: 0x0075E090
|
|
private void LJJPAJDDMKC()
|
|
{
|
|
this.PNPLMCHPNLO();
|
|
if (this.PBCJBEPKBPJ != null)
|
|
{
|
|
foreach (OutfitSelectionToBody outfitSelectionToBody in this.PBCJBEPKBPJ.NMPMNBCNGBE.PAKHCIDILIE)
|
|
{
|
|
this.EquipOutfitSelection(outfitSelectionToBody.selection, outfitSelectionToBody.bodyPart);
|
|
}
|
|
}
|
|
this.Refresh();
|
|
}
|
|
|
|
// Token: 0x0601A697 RID: 108183 RVA: 0x0075FF20 File Offset: 0x0075E120
|
|
private void PAOFABOMPNG(SkinnedMeshRenderer ECFENKBBJOK, SkinnedMeshRenderer NKJECDCGCOL)
|
|
{
|
|
for (int i = 0; i < ECFENKBBJOK.bones.Length; i++)
|
|
{
|
|
this.BHMGEHEGNLF(ECFENKBBJOK.bones[i], NKJECDCGCOL.bones[i]);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A698 RID: 108184 RVA: 0x0075FF5C File Offset: 0x0075E15C
|
|
protected void Update()
|
|
{
|
|
if (this.NHDDPGADJPJ && this.PBCJBEPKBPJ != null && this.localPivot.gameObject.activeSelf)
|
|
{
|
|
this.HOGGJMEKJFA(this.PBCJBEPKBPJ.BGIBHPOALJG, false);
|
|
this.HOGGJMEKJFA(this.PBCJBEPKBPJ.KEJBPANGFKK, false);
|
|
bool displayAsIgnored = this.PBCJBEPKBPJ.OFAHEPODABI;
|
|
if (this.NOHMOBFFALM != displayAsIgnored)
|
|
{
|
|
this.NOHMOBFFALM = displayAsIgnored;
|
|
this.Refresh();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A699 RID: 108185 RVA: 0x0075FFE4 File Offset: 0x0075E1E4
|
|
private void NMBOIMCBEOA(bool CMHBICCKNEG, bool EOJKHKDGDNE)
|
|
{
|
|
this.Refresh();
|
|
}
|
|
|
|
// Token: 0x17000C03 RID: 3075
|
|
// (get) Token: 0x0601A69A RID: 108186 RVA: 0x0075FFEC File Offset: 0x0075E1EC
|
|
public Transform BGOGBEPJGPJ
|
|
{
|
|
get
|
|
{
|
|
return this.head;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A69B RID: 108187 RVA: 0x0075FFF4 File Offset: 0x0075E1F4
|
|
private void LEFPIPNOPJI(SkinnedMeshRenderer ECFENKBBJOK, SkinnedMeshRenderer NKJECDCGCOL)
|
|
{
|
|
for (int i = 1; i < ECFENKBBJOK.bones.Length; i++)
|
|
{
|
|
this.BHMGEHEGNLF(ECFENKBBJOK.bones[i], NKJECDCGCOL.bones[i]);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A69C RID: 108188 RVA: 0x00760030 File Offset: 0x0075E230
|
|
public OutfitItem EquipOutfitSelection(OutfitSelection KJIMHKNFGDB, Player.HDOICGIKKAO ACAHIJEJKLC)
|
|
{
|
|
if (!this.NHDDPGADJPJ)
|
|
{
|
|
return null;
|
|
}
|
|
if (OutfitManager.IsTeamOutfit(KJIMHKNFGDB.outfitItem.Type))
|
|
{
|
|
return null;
|
|
}
|
|
OutfitItem outfitItem = this.PBCJBEPKBPJ.NMPMNBCNGBE.InstantiateNewOutfitPrefab(KJIMHKNFGDB.outfitItem, ACAHIJEJKLC, true, KJIMHKNFGDB.decal, KJIMHKNFGDB.mask, KJIMHKNFGDB.colorSwatch, true);
|
|
this.JNFFOJHGEDL(outfitItem);
|
|
outfitItem.transform.SetParent(base.transform);
|
|
outfitItem.transform.localPosition = Vector3.zero;
|
|
outfitItem.gameObject.HLGPFLHHEEK(NILFAGNKNMH.DynamicPhysics);
|
|
this.BKDFLNGCINH.AddRenderer(outfitItem.SkinnedMeshRenderer);
|
|
this.IOGPKBDNHHN.Add(outfitItem);
|
|
return outfitItem;
|
|
}
|
|
|
|
// Token: 0x0601A69D RID: 108189 RVA: 0x007600E0 File Offset: 0x0075E2E0
|
|
private void EDAIJHBCINI(PlayerHand GAEKGDCFOJM, bool GEDMDJHCOLO = false)
|
|
{
|
|
bool flag = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? this.JEEKKAMIDCP : this.HGGPIEOGJIH);
|
|
bool menuHandVisible = GAEKGDCFOJM.ANGJJOCHMEF;
|
|
if (flag != menuHandVisible || GEDMDJHCOLO)
|
|
{
|
|
SkinnedMeshRenderer skinnedMeshRenderer = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? this.rightHandMesh : this.leftHandMesh);
|
|
Renderer renderer = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? this.rightHandPointingMesh : this.leftHandPointingMesh);
|
|
Player.HDOICGIKKAO hdoicgikkao = ((GAEKGDCFOJM.EEAOGJHMFII != PlayerHand.HMMEBFHABKA.Left) ? Player.HDOICGIKKAO.Head : ((Player.HDOICGIKKAO)5));
|
|
skinnedMeshRenderer.gameObject.SetActive(!menuHandVisible);
|
|
renderer.gameObject.SetActive(menuHandVisible);
|
|
foreach (OutfitItem outfitItem in this.IOGPKBDNHHN)
|
|
{
|
|
if (outfitItem.CurrentBodyPart == hdoicgikkao)
|
|
{
|
|
outfitItem.JHBJIHFHELN(menuHandVisible);
|
|
}
|
|
}
|
|
if (GAEKGDCFOJM.EEAOGJHMFII == PlayerHand.HMMEBFHABKA.Left)
|
|
{
|
|
this.HGGPIEOGJIH = menuHandVisible;
|
|
}
|
|
else
|
|
{
|
|
this.JEEKKAMIDCP = menuHandVisible;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A69E RID: 108190 RVA: 0x00760208 File Offset: 0x0075E408
|
|
private void OOHFAEDELKN(long HPCOKMAPCHB)
|
|
{
|
|
if (this != null && base.enabled && this.PBCJBEPKBPJ != null && this.PBCJBEPKBPJ.NAJBCPFNBAB == HPCOKMAPCHB)
|
|
{
|
|
this.Refresh();
|
|
}
|
|
}
|
|
|
|
// Token: 0x040047DC RID: 18396
|
|
[SerializeField]
|
|
private Transform localPivot;
|
|
|
|
// Token: 0x040047DD RID: 18397
|
|
[SerializeField]
|
|
private Transform remotePivot;
|
|
|
|
// Token: 0x040047DE RID: 18398
|
|
[Header("Limbs")]
|
|
[SerializeField]
|
|
private Transform head;
|
|
|
|
// Token: 0x040047DF RID: 18399
|
|
[SerializeField]
|
|
private Transform body;
|
|
|
|
// Token: 0x040047E0 RID: 18400
|
|
[SerializeField]
|
|
private Transform leftHand;
|
|
|
|
// Token: 0x040047E1 RID: 18401
|
|
[SerializeField]
|
|
private Transform rightHand;
|
|
|
|
// Token: 0x040047E2 RID: 18402
|
|
[Header("Skinned Meshes")]
|
|
[SerializeField]
|
|
private SkinnedMeshRenderer faceMesh;
|
|
|
|
// Token: 0x040047E3 RID: 18403
|
|
[SerializeField]
|
|
private SkinnedMeshRenderer eyesMesh;
|
|
|
|
// Token: 0x040047E4 RID: 18404
|
|
[SerializeField]
|
|
private SkinnedMeshRenderer mouthMesh;
|
|
|
|
// Token: 0x040047E5 RID: 18405
|
|
[SerializeField]
|
|
private SkinnedMeshRenderer torsoMesh;
|
|
|
|
// Token: 0x040047E6 RID: 18406
|
|
[SerializeField]
|
|
private SkinnedMeshRenderer leftHandMesh;
|
|
|
|
// Token: 0x040047E7 RID: 18407
|
|
[SerializeField]
|
|
private SkinnedMeshRenderer rightHandMesh;
|
|
|
|
// Token: 0x040047E8 RID: 18408
|
|
[SerializeField]
|
|
private Renderer leftHandPointingMesh;
|
|
|
|
// Token: 0x040047E9 RID: 18409
|
|
[SerializeField]
|
|
private Renderer rightHandPointingMesh;
|
|
|
|
// Token: 0x040047EA RID: 18410
|
|
private bool HGGPIEOGJIH;
|
|
|
|
// Token: 0x040047EB RID: 18411
|
|
private bool JEEKKAMIDCP;
|
|
|
|
// Token: 0x040047EC RID: 18412
|
|
[Header("Voice lines")]
|
|
[SerializeField]
|
|
private Transform voiceLinesHeadAnchor;
|
|
|
|
// Token: 0x040047ED RID: 18413
|
|
[SerializeField]
|
|
private Transform voiceLinesAnchor;
|
|
|
|
// Token: 0x040047EE RID: 18414
|
|
[SerializeField]
|
|
[Header("Identity")]
|
|
private Transform identityRoot;
|
|
|
|
// Token: 0x040047EF RID: 18415
|
|
[SerializeField]
|
|
private MeshRenderer labelMesh;
|
|
|
|
// Token: 0x040047F1 RID: 18417
|
|
private Player MCFIJNEEIIC;
|
|
|
|
// Token: 0x040047F2 RID: 18418
|
|
private float FCCDMLABGGI;
|
|
|
|
// Token: 0x040047F3 RID: 18419
|
|
private PlayerFacialAnimator OOGBLBOBNNI;
|
|
|
|
// Token: 0x040047F4 RID: 18420
|
|
private VoiceLinesController2D GOMCLKPEGBG;
|
|
|
|
// Token: 0x040047F5 RID: 18421
|
|
private bool NOHMOBFFALM;
|
|
|
|
// Token: 0x040047F6 RID: 18422
|
|
private List<OutfitItem> IOGPKBDNHHN = new List<OutfitItem>();
|
|
}
|