Script de prise de vue d'unité 2D

// add this variable to your Script, this is where you drag your prefab in the inspector
public GameObject bulletPrefab;

// Put this in your shoot function
Instantiate(bulletPrefab, GUNTRANSFORM, GUNTRANSFORM.rotation, transform);
Chupa Coder