public override void OnStartClient() { //Called when the client starts //Use this as if it's the Start() func lobby = GameObject.Find("NetworkManager").GetComponent <NetworkManagerLobby>(); voting = this.GetComponent <Voting>(); //username = PlayerPrefs.GetString("Username"); playerIndex = index; username = "******" + (playerIndex + 1); }
void Start() { //Set up all the buttons //Set up the server server = GameObject.Find("NetworkManager").GetComponent <customLobby.NetworkManagerLobby>(); //Set up the lists prevPresidents = new List <int>(); //Set up rand rand = new System.Random(); }
private void SetUp() { nameInputField.text = PlayerPrefs.GetString("Username"); networkManager = GameObject.Find("NetworkManager").GetComponent <NetworkManagerLobby>(); }