Update PlayerManager.cs

This commit is contained in:
haitem 2021-01-31 04:20:04 +01:00
parent 09a86e504f
commit 07d745f82c

View File

@ -59,7 +59,8 @@ public class PlayerManager : MonoBehaviour
{
if (Input.GetKeyDown(KeyCode.Escape))
{
SceneManager.LoadScene(0);
DataManager.Level(SceneManager.GetActiveScene().buildIndex);
SceneManager.LoadScene(6);
}
if (actualHealth <= 0 || gameObject.transform.position.y < -400.0f)
{