// Update is called once per frame
    void Update()
    {
        if (Input.GetButtonDown("Cycle") && invSystem.gunList.Count != 0)
        {
            ChooseGun();
        }

        if (gunEntity != null)
        {
            gunEntity.ShootGun(Quaternion.Euler(0, 0, 0));
        }

        if (Input.GetButtonDown("ThrowObject") && currentGun != null)
        {
            ThrowObject(currentGun);
            gunEntity  = null;
            currentGun = null;
        }

        RaycastHit hit;

        if (Physics.Raycast(transform.position, transform.rotation * Vector3.forward * 20f, out hit))
        {
            //ui_System.DrawTargetOnObject(hit.transform.position);
            if (hit.collider.tag == "Enemy")
            {
                Debug.DrawRay(transform.position, transform.rotation * Vector3.forward * 20f, Color.red);
                ui_System.DrawTargetOnObject(hit.transform.position);
            }
        }
    }