Hey every1,Im making a 2players/hotseat game,there are 10 characters in total and you are able to swap between them as long as the other player isn't using the one you choose,each character is a different prefab with his own model,statistics. My question is,What is the best way to handle this? An array? I tried a public GameObject array,then dropping the prefabs into the slots,then instatiating,but when I try to swap characters its turning on/off the collider/Renderer of the prefabs no the ones in game. Any insight? Thanks In advanced.
asked Jun 03 '12 at 12:36 PM
I'd just Instantiate the prefab you wanna show and then Destroy it when another character is selected. No reason to keep it around and try to juggle renderers and colliders.
answered Jun 03 '12 at 01:45 PM