public static Server Create(int port) { ServerConfiguration config = PeerUtils.LoadConfigurationAsset <ServerConfiguration>(SlimNet.Constants.ServerConfigName); config.Port = port; return(new Server(config)); }
public override void BeforeActorStart(Actor actor) { PeerUtils.CreateGameObject(actor); GameObject go = GameObjectMap.Retrieve(actor); go.transform.position = Converter.Convert(actor.Transform.Position); go.transform.rotation = Converter.Convert(actor.Transform.Rotation); }
public override void BeforeSimulate() { PeerUtils.CopyTransformsToSlimNet(Context); }
public static Client Create() { return(new Client(PeerUtils.LoadConfigurationAsset <ClientConfiguration>(SlimNet.Constants.ClientConfigName))); }