fix game reload
This commit is contained in:
parent
b070a3e81f
commit
cb15b3a7b4
|
|
@ -59,7 +59,7 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
|||
.Where(_ => Input.GetKeyDown(KeyCode.R))
|
||||
.Subscribe(_ =>
|
||||
{
|
||||
UnityEngine.SceneManagement.SceneManager.LoadScene("MiniGame");
|
||||
UnityEngine.SceneManagement.SceneManager.LoadScene(gameObject.scene.buildIndex);
|
||||
}).AddTo(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue