Answers for "2d shooting in unity"

C#
0

unity shooting script 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);
Posted by: Guest on September-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language