Hi, I am trying to sort out my random loot generator.
I have a var that sets the number of gold coins to produce, and I am creating them from a prefab using
Instantiate(goldKeyPrefab, transform.position, transform.rotation);
My question is, how can I create multiple of the above prefab based on the variable amount?
I would be very grateful if someone could help me out with some c# code