private void CmdThrowBall(GameObject g, Vector2 dir)
    {
        BallMovement b = g.GetComponent <BallMovement>();
        int          m = b.GetMovementType();

        b.Drop();
        if (m == 0)
        {
            g.GetComponent <Rigidbody2D>().velocity = dir;
        }
        else if (m == 1)
        {
            b.moveSerpentine(dir);
        }
        else if (m == 2)
        {
            b.moveCharge(dir);
        }
    }