|
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.
(comments are locked)
|
|
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.
(comments are locked)
|

Yeh Well I did forget to mention that there will be character progression,and also need to keep track of their health and such,so I cant just destrou and then instantiate again(as all statistics will reset).