I am doing a sport in Unity and I’ve a query concerning the destruction of my participant object.
At present I am destroying the participant with
Digital camera.most important.rework.father or mother = null;
sceneLoader.GetComponent<SceneLoad>().StartCoroutine("LoadScoreScreenAfterDelay");
Destroy(gameObject);
Now this works once I use it within the editor: the participant is destroyed, the primary digital camera reveals the scene for just a few seconds after which the scene modifications to the rating scene. As you’ll be able to see:
Nonetheless, this isn’t working because it ought to once I’m enjoying the sport from the constructed model. On this case the participant GameObject mannequin continues to be there, as proven right here:
Anyone can inform me why it is not engaged on the constructed sport however it’s on the editor? Thanks!