|
Hallo everybody, While building my game i've encountered a problem when i try to remove a parent game object (with all its children) and reinstantiating the prefab. Because the game objects already exist in my scene it seems as if i have to treat the already existing objects & the prefab objects as different objects. When i try to instantiate the prefab i have encountered numerous problems and i have tried numerous approaches to the problem. Some problems where that the instantiated prefab doesn't instantiate or that the Destroy function does not remove the objects. Anyway here is where i am at now. The respawn function is called from another script. Is this because I'm trying to instantiate a parent object or am i failing big time code wise? Thanks in advance.
(comments are locked)
|

You should give allLetters an explicit type, like you do for letters and existingLetters.