void FixedUpdate()
    {
        if (!this.GetComponent <NetworkIdentity>().isLocalPlayer)  // well allow me to control my player but not every other character in the scene.
        //playerCam.enabled = false;
        {
            return;
        }

        // The next two lines set the variable attached to the player animator to what the current horizontal and vertical axis values are.
        anim.SetFloat("Vertical Movement", Input.GetAxis("Vertical"));      // Set vertical animator float value to current vertical axis
        anim.SetFloat("Horizontal Movement", Input.GetAxis("Horizontal"));  // Set horizontal animator float value to current horizontal axis


        // Create a vector2 object, with x being the current horizontal axis and y as the current Vertical Axis
        Vector2 movement = new Vector2(anim.GetFloat("Horizontal Movement"), anim.GetFloat("Vertical Movement"));

        // if the player's velocity is greater than 0.1, animate them walking
        if ((Mathf.Abs(anim.GetFloat("Horizontal Movement")) > 0.1) || (Mathf.Abs(anim.GetFloat("Vertical Movement")) > 0.1))
        {
            anim.SetBool("IsMoving", true);

            // Flip
            if (Input.GetAxisRaw("Horizontal") > 0.0)
            {
                flipped = true;
                flipMe.CmdFlip(flipped);
                //transform.localScale = new Vector3(-1, 1, 1);
            }
            if (Input.GetAxisRaw("Horizontal") < 0.0)
            {
                flipped = false;
                flipMe.CmdFlip(flipped);
                //transform.localScale = new Vector3(1, 1, 1);
            }
        }
        else
        {
            anim.SetBool("IsMoving", false);
        }


        rb.AddForce(movement * speed);
    }
    // Update is called once per frame
    void FixedUpdate()
    {
        if (!this.GetComponent <NetworkIdentity>().isLocalPlayer)
        {
            return;
        }
        // Flip
        if (Input.GetAxisRaw("Horizontal") > 0.0)
        {
            flipped = true;
            flipMe.CmdFlip(flipped);
            //transform.localScale = new Vector3(-1, 1, 1);
        }
        if (Input.GetAxisRaw("Horizontal") < 0.0)
        {
            flipped = false;
            flipMe.CmdFlip(flipped);
            //transform.localScale = new Vector3(1, 1, 1);
        }
        Vector2 vertical = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"));

        rb.AddForce(vertical * speed);
    }