Exemplo n.º 1
0
        public void ResetForNewEntry()
        {
            this.txtName.Text = "";
            _datastore = new NetworkDataStruct("");
            _datastore.CheckUniquenessOnSave = true;
            bbMembers.DisplayLists(MakeNonmembers(), _datastore.Members);

        }
Exemplo n.º 2
0
    public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId)
    {
        GameObject player;

        if (GameManager.IsServer)
        {
            player     = CreateStandardPlayer();
            hostPlayer = new NetworkDataStruct(conn, playerControllerId);
        }
        else
        {
            player       = CreateOverheadPlayer();
            clientPlayer = new NetworkDataStruct(conn, playerControllerId);
        }


        NetworkServer.AddPlayerForConnection(conn, player, playerControllerId);
    }
Exemplo n.º 3
0
        public NetworkDataStruct CreateNetwork(string name)
        {
            NetworkDataStruct nd = new NetworkDataStruct(name);
         
            Ctl_Networks.Networks.AddToList(nd);
            if (!UniqueNames.Contains(name))
                UniqueNames.Add(name);
           

            return nd;
        }