using System; using Cpp2IlInjected; using UnityEngine; using UnityEngine.UI; namespace RecRoom.Activities.Bowling { // Token: 0x02002D4C RID: 11596 [Token(Token = "0x2002D4C")] public class BowlingScoreboard : MonoBehaviour { // Token: 0x17003612 RID: 13842 // (get) Token: 0x06013818 RID: 79896 RVA: 0x00480D20 File Offset: 0x0047EF20 [Token(Token = "0x17003612")] public int PKNBFNIAMMH { [Token(Token = "0x6013818")] [Address(RVA = "0x8669C0", Offset = "0x8659C0", VA = "0x1808669C0")] get { return this.playerRows.Length; } } // Token: 0x06013819 RID: 79897 RVA: 0x00480D40 File Offset: 0x0047EF40 [Token(Token = "0x6013819")] [Address(RVA = "0x1622B40", Offset = "0x1621B40", VA = "0x181622B40")] 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: 0x0601381A RID: 79898 RVA: 0x00480D88 File Offset: 0x0047EF88 [Token(Token = "0x601381A")] [Address(RVA = "0x1622C50", Offset = "0x1621C50", VA = "0x181622C50")] 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: 0x0601381B RID: 79899 RVA: 0x00480DC8 File Offset: 0x0047EFC8 [Token(Token = "0x601381B")] [Address(RVA = "0x1622C20", Offset = "0x1621C20", VA = "0x181622C20")] private void NJGKEJCHADK() { GameObject gameObject = this.bumpersInfo; int num = 0; gameObject.SetActive(num != 0); } // Token: 0x0601381C RID: 79900 RVA: 0x00480DEC File Offset: 0x0047EFEC [Token(Token = "0x601381C")] [Address(RVA = "0x1622D60", Offset = "0x1621D60", VA = "0x181622D60")] 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: 0x0601381D RID: 79901 RVA: 0x00481040 File Offset: 0x0047F240 [Token(Token = "0x601381D")] [Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")] public BowlingScoreboard() { } // Token: 0x0400CA5D RID: 51805 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400CA5D")] [SerializeField] private BowlingScoreboardPlayerRow[] playerRows; // Token: 0x0400CA5E RID: 51806 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400CA5E")] [SerializeField] private GameObject bumpersInfo; // Token: 0x0400CA5F RID: 51807 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400CA5F")] [SerializeField] private Color waitingColor; // Token: 0x0400CA60 RID: 51808 [FieldOffset(Offset = "0x38")] [Token(Token = "0x400CA60")] [SerializeField] private Color turnColor; // Token: 0x0400CA61 RID: 51809 [FieldOffset(Offset = "0x48")] [Token(Token = "0x400CA61")] public BowlingLane BowlingLane; } }