63 lines
1.8 KiB
C#
63 lines
1.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020005CF RID: 1487
|
|
[Token(Token = "0x20005CF")]
|
|
public class PlayerHandUIInteraction : MonoBehaviour
|
|
{
|
|
// Token: 0x06002C51 RID: 11345 RVA: 0x000B5314 File Offset: 0x000B3514
|
|
[Token(Token = "0x6002C51")]
|
|
[Address(RVA = "0xAED1F0", Offset = "0xAEBFF0", VA = "0x180AED1F0", Slot = "4")]
|
|
public virtual void OnHandOverlapChanged(PlayerHand hand, bool isIn)
|
|
{
|
|
PhotonView componentInParent = base.GetComponentInParent<PhotonView>();
|
|
int num = 0;
|
|
if (hand != num && (!componentInParent || componentInParent.AHNNNIPLFGD))
|
|
{
|
|
if (!isIn || (!this.supportsScreenPlayers && SingletonMonoBehaviour.ONCPNMDGGKG.ACGDGBHFJFB))
|
|
{
|
|
GameObject gameObject = base.gameObject;
|
|
bool flag = this.forceUIRegion;
|
|
throw new NullReferenceException();
|
|
}
|
|
GameObject gameObject2 = base.gameObject;
|
|
bool flag2 = this.forceUIRegion;
|
|
hand.AddIntersectingUIRegion(gameObject2, flag2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170007C0 RID: 1984
|
|
// (get) Token: 0x06002C52 RID: 11346 RVA: 0x000B538C File Offset: 0x000B358C
|
|
[Token(Token = "0x170007C0")]
|
|
protected bool BJIPCLFGBOE
|
|
{
|
|
[Token(Token = "0x6002C52")]
|
|
[Address(RVA = "0xAED170", Offset = "0xAEBF70", VA = "0x180AED170")]
|
|
get
|
|
{
|
|
return this.supportsScreenPlayers || !SingletonMonoBehaviour.ONCPNMDGGKG.ACGDGBHFJFB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002C53 RID: 11347 RVA: 0x000B53B8 File Offset: 0x000B35B8
|
|
[Token(Token = "0x6002C53")]
|
|
[Address(RVA = "0xAED3A0", Offset = "0xAEC1A0", VA = "0x180AED3A0")]
|
|
public PlayerHandUIInteraction()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040023BE RID: 9150
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40023BE")]
|
|
[SerializeField]
|
|
protected bool forceUIRegion;
|
|
|
|
// Token: 0x040023BF RID: 9151
|
|
[FieldOffset(Offset = "0x19")]
|
|
[Token(Token = "0x40023BF")]
|
|
[SerializeField]
|
|
private bool supportsScreenPlayers = true;
|
|
}
|