// Set listeners and assign private variables when the game starts. void Start() { shouldAttemptRejoin = true; Instance = this; mainMenuManager = GetComponent <MainMenuManager>(); championSelect = GetComponent <ChampionSelect>(); mapManager = GetComponent <MapManager>(); gameHandler = GetComponent <GameHandler>(); searchingLabel = SearchingLabel.Instance; cancelButton.onClick.AddListener(StopPlay); }
// Set references to private variables when the game starts void Start() { title = transform.Find("Title").GetComponent <TMP_Text>(); image = transform.Find("Image").GetComponent <Image>(); championSelect = GameObject.Find("GameManager").GetComponent <ChampionSelect>(); }
private void pictureBox_championSelect_Click(object sender, EventArgs e) { ChampionSelect champSlct = new ChampionSelect()); champSlct.ChampionSelected += this.championSelected; champSlct.Show(); }