public void Activate(UIState OldState) { this.gameObject.SetActive(true); this.WofClient = new WofClient(GAME_GUID); var selectedGo = GetComponentInChildren <Button>().gameObject; EventSystem.current.SetSelectedGameObject(selectedGo); FetchScoreData(); CreateUIList(); }
public void Activate(UIState OldState) { this.gameObject.SetActive(true); var selectedGo = GetComponentInChildren <Button>().gameObject; EventSystem.current.SetSelectedGameObject(selectedGo); this.WofClient = new WofClient("480d4d21-7138-41a4-b77a-5a2af1de2097 "); this.Winner = GameManager.Instance.WinningPlayer; this.Description.text = string.Format("Player {0} won!", this.Winner.ID); this.Score.text = string.Format("Score {0}", this.Winner.Score); }