// Set references for private variables when the game starts void Start() { gameHandler = GetComponent <GameHandler>(); championRoster = GetComponent <ChampionRoster>(); lobbyNetwork = GetComponent <LobbyNetwork>(); photonView = GetComponent <PhotonView>(); lockinButton.onClick.AddListener(LockChampion); SetupChampions(); }
/// <summary> /// Creates an instance of this script once the game begins. /// </summary> void Start() { Instance = this; }