public NetworkWaitingGui Get(NetworkEntityRole role)
 {
     switch (role) {
     case NetworkEntityRole.Client:
         return new ClientNetworkWaitingGui(networkEntity);
     case NetworkEntityRole.Server:
         return new ServerNetworkWaitingGui(networkEntity);
     default:
         return null;
     }
 }
Пример #2
0
 public NetworkEntity Get(NetworkEntityRole role)
 {
     switch (role) {
     case NetworkEntityRole.Client:
         return new ClientNetworkEntity(networkView);
     case NetworkEntityRole.Server:
         return new ServerNetworkEntity(networkView);
     default:
         return null;
     }
 }
Пример #3
0
    public NetworkEntity Get(NetworkEntityRole role)
    {
        switch (role)
        {
        case NetworkEntityRole.Client:
            return(new ClientNetworkEntity(networkView));

        case NetworkEntityRole.Server:
            return(new ServerNetworkEntity(networkView));

        default:
            return(null);
        }
    }
Пример #4
0
    public NetworkWaitingGui Get(NetworkEntityRole role)
    {
        switch (role)
        {
        case NetworkEntityRole.Client:
            return(new ClientNetworkWaitingGui(networkEntity));

        case NetworkEntityRole.Server:
            return(new ServerNetworkWaitingGui(networkEntity));

        default:
            return(null);
        }
    }