private void Update()
    {
        var delta = Time.deltaTime;

        _serverApplication?.Update(delta);
        _clientApplication?.Update(delta);
    }
Exemple #2
0
        protected override void Update(GameTime gameTime)
        {
            ProcessInput(gameTime);

            switch (_appType)
            {
            case ApplicationType.None:
                _mainMenu.Update(gameTime);
                break;

            case ApplicationType.Client:
                _client.Update(gameTime);
                break;

            case ApplicationType.Server:
                _server.Update(gameTime);
                break;
            }

            base.Update(gameTime);
        }