using System; using Cpp2IlInjected; using UnityEngine; using UnityEngine.UI; namespace RecRoom.Activities.Bowling { // Token: 0x02002C63 RID: 11363 [Token(Token = "0x2002C63")] public class BowlingScoreboard : MonoBehaviour { // Token: 0x1700355E RID: 13662 // (get) Token: 0x060133D7 RID: 78807 RVA: 0x00476FC4 File Offset: 0x004751C4 [Token(Token = "0x1700355E")] public int PKNBFNIAMMH { [Token(Token = "0x60133D7")] [Address(RVA = "0xB23590", Offset = "0xB22390", VA = "0x180B23590")] get { return this.playerRows.Length; } } // Token: 0x060133D8 RID: 78808 RVA: 0x00476FE4 File Offset: 0x004751E4 [Token(Token = "0x60133D8")] [Address(RVA = "0xB22CD0", Offset = "0xB21AD0", VA = "0x180B22CD0")] private void Awake() { GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG; Action action = new Action(this.NJGKEJCHADK); instance.NJGCGNDOMBJ += action; if (!NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.CIFKHPAHBHB) { this.bumpersInfo.SetActive(true); } } // Token: 0x060133D9 RID: 78809 RVA: 0x0047702C File Offset: 0x0047522C [Token(Token = "0x60133D9")] [Address(RVA = "0xB22DE0", Offset = "0xB21BE0", VA = "0x180B22DE0")] private void OnDestroy() { GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG; int num = 0; if (instance != num) { GameManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG; Action action = new Action(this.NJGKEJCHADK); instance2.NJGCGNDOMBJ -= action; } } // Token: 0x060133DA RID: 78810 RVA: 0x0047706C File Offset: 0x0047526C [Token(Token = "0x60133DA")] [Address(RVA = "0xB22DB0", Offset = "0xB21BB0", VA = "0x180B22DB0")] private void NJGKEJCHADK() { GameObject gameObject = this.bumpersInfo; int num = 0; gameObject.SetActive(num != 0); } // Token: 0x060133DB RID: 78811 RVA: 0x00477090 File Offset: 0x00475290 [Token(Token = "0x60133DB")] [Address(RVA = "0xB22EF0", Offset = "0xB21CF0", VA = "0x180B22EF0")] public void Refresh() { BowlingScoreboardPlayerRow[] array = this.playerRows; int num = 0; if (num < array.Length) { BowlingScoreboardPlayerRow bowlingScoreboardPlayerRow = array[num]; if (BowlingManager.ONCPNMDGGKG.EBDGHFCANCB.IAHDANBDAAM() == num) { } Color color = this.waitingColor; bowlingScoreboardPlayerRow.SetRowColor(color); AGAJMBPABDL anyPlayerOnTeam = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.teamManager.GetAnyPlayerOnTeam((CGLKOJIMDIH)num); Text[] rowTexts = bowlingScoreboardPlayerRow.rowTexts; if (anyPlayerOnTeam == 0) { string text = rowTexts[0].text; string text2 = bowlingScoreboardPlayerRow.rowTexts[11].text; GameObject bumpersIcon = bowlingScoreboardPlayerRow.BumpersIcon; int num2 = 0; bumpersIcon.SetActive(num2 != 0); uint num3; int num4; int num5; int num6; bowlingScoreboardPlayerRow.SetFrame((int)num3, -1, -1, num4, num5, num6); num3 += (uint)1; while (num3 <= (uint)10) { } } GameObject bumpersIcon2 = bowlingScoreboardPlayerRow.BumpersIcon; BowlingManager instance = BowlingManager.ONCPNMDGGKG; bool flag; bumpersIcon2.SetActive(flag); BowlingManager instance2 = BowlingManager.ONCPNMDGGKG; KLLMCPFPIIE kllmcpfpiie; int[] array2 = kllmcpfpiie.IAHDANBDAAM(); int length = array2.Length; uint num8; int num7 = array2[(int)num8]; int totalScore; if (num7 != 10) { int num9 = 0; int num10 = Mathf.Clamp(num7, num9, 10); uint num11 = num8 - 1U; int num12 = array2[(int)num11]; int num13 = 0; int num14 = Mathf.Clamp(num12, num13, 10); int length2 = array2.Length; num14 += num10; num += num14; if (num14 == 10) { if (num8 >= (uint)length2) { goto IL_21F; } int num15 = array2[(int)num8]; if (num15 == -1) { goto IL_21F; } num += num15; } int num16 = BowlingManager.ONCPNMDGGKG.CHKNMGMOHJJ; CGLKOJIMDIH currentTeam = BowlingManager.ONCPNMDGGKG.GPJADJLNGDF; int length3 = array2.Length; uint num17 = num8 - 1U; int num18 = array2[(int)num17]; ulong num19; num16 = (int)((ulong)num16 - num19); int num20 = num16 * (int)num8; num20 -= num; num20 = (int)(num20 + currentTeam); int num21 = array2[(int)num8]; bowlingScoreboardPlayerRow.SetFrame((int)num19, (int)num17, num18, num21, num, num20); num19 += (ulong)1L; num8 += (uint)2; while (num8 <= (uint)20) { } if (KKPBCOOONNK.BNNCCCFFALC) { GameScoreManager scoreManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.scoreManager; totalScore = bowlingScoreboardPlayerRow.TotalScore; scoreManager.MasterSetScore((CGLKOJIMDIH)num, totalScore); } num++; } IL_21F: uint num22; num22 += (uint)10; uint num24; uint num23 = num24 - 1U; if (-1 < totalScore && num24 > (uint)0) { num23 += (uint)1; } } } // Token: 0x060133DC RID: 78812 RVA: 0x004772E4 File Offset: 0x004754E4 [Token(Token = "0x60133DC")] [Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")] public BowlingScoreboard() { } // Token: 0x0400C849 RID: 51273 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400C849")] [SerializeField] private BowlingScoreboardPlayerRow[] playerRows; // Token: 0x0400C84A RID: 51274 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400C84A")] [SerializeField] private GameObject bumpersInfo; // Token: 0x0400C84B RID: 51275 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400C84B")] [SerializeField] private Color waitingColor; // Token: 0x0400C84C RID: 51276 [FieldOffset(Offset = "0x38")] [Token(Token = "0x400C84C")] [SerializeField] private Color turnColor; // Token: 0x0400C84D RID: 51277 [FieldOffset(Offset = "0x48")] [Token(Token = "0x400C84D")] public BowlingLane BowlingLane; } }