0

Here is the situation: I have 10 weapons in my game, in main menu player may choose only two weapons that could take to the game, and this information about two weapons will save in a kind of "inventory". So the question is how I could instantiate only two objects from "inventory"?

Pikalek
  • 12,372
  • 5
  • 43
  • 51
Silz
  • 37
  • 7

1 Answers1

0

I found the solution by loading from Resource folder. GameObject weaponOne = Instantiate(Resources.Load("Gun1"), this.gameObject.transform) as GameObject;

Silz
  • 37
  • 7