andre
New vMember
Posts: 3
|
Post by andre on Dec 1, 2019 5:43:21 GMT
Hi, i need some help. I'm trying to create a button on the UI to restart the game after the Hero defeated all enemies, so the player can play again, but the following codes are not working.
i'm using this code, but the player always restart in the same place he was when i won.
var scene = SceneManager.GetActiveScene();
SceneManager.LoadScene(scene.name);
I only can restart right if the player is dead.
|
|