I made inventory system (spawn item, drop item, pick up , use and weapon in players hand and when i’m spawning to players hand it’s spawning to his head `using System;
using UnityEngine;
namespace Systems
{
public class InPlayersHand : MonoBehaviour
{
private Transform _player;
[SerializeField] private GameObject shotGun;
private void Start()
{
_player = GameObject.FindGameObjectWithTag("Player").transform;
}
public void Use()
{
Instantiate(shotGun, _player.position, shotGun.transform.rotation, _player.transform);
Destroy(gameObject);
}
}
}
`
i tried to change prefab position but not worked