// Update is called once per frame
    void Update()
    {
        // this makes sure that the scene is loaded and we are connected to the server
        // the client then lets the server know it's ok to start the game
        if (_isPreConnection && Client.IsConnectedToServer)
        {
            Client.SceneReady();
            _isPreConnection = false;
        }

        // don't allow input when the game isn't running
        if (_isGameRunning)
        {
            if (Input.GetButtonDown("HopP1"))
            {
                Client.HopButtonPressed();
            }

            // ignore second local input if playing multiplayer
            if (StateManager.isServerSimulated)
            {
                if (Input.GetButtonDown("HopP2"))
                {
                    Client.LocalP2HopPressed();
                }
            }
        }
    }
    // Start is called before the first frame update

    void Start()
    {
        //SceneCamera.enabled = false;
        PlayerCamera.enabled = true;
        Client.SceneReady();
    }