예제 #1
0
        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);
        }
예제 #2
0
    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();
    }
예제 #3
0
        private void SetUp()
        {
            nameInputField.text = PlayerPrefs.GetString("Username");

            networkManager = GameObject.Find("NetworkManager").GetComponent <NetworkManagerLobby>();
        }