public void Init(LeaderboardDialog newDialog = null) { if (this.initialized) { return; } if (newDialog != null) { this.leaderboardDialog = newDialog; } if (this.cups == null) { this.cups = new Transform[6]; for (int i = 1; i <= 6; i++) { string name = string.Format("CupGrid/Cup{0}", i); this.cups[i - 1] = base.transform.Find(name); } } this.initialized = true; }
public void SetDialog(LeaderboardDialog parentDialog) { this.dialog = parentDialog; }
public void Init(LeaderboardDialog parentDialog) { this.dialog = parentDialog; base.gameObject.SetActive(false); this.heightAdded = false; }