Hello,
I’m new in Unity, so I’m making small games to get more practice.
Now I have this (trivial?) problem:
I have a cannon, and I need to create a bullet (a prefab) when the player press “fire”. In my mind I created a bullet in prefab, then I wanted to instantiate it when player fires a bullet. But it seems I need to make an instance in the game, else I cannot access (unless I use Resources) to the bullet prefab. It does not seem the right way.
So, please can you suggest me how to dynamically create a bullet at runtime when the player hit “fire”?
Do I need to put a bullet instance in the game (and “disable” or make it not visible?)?
Thank you for your help!