Dead Sync and Timescale Bug Fix

This commit is contained in:
brausjonas
2022-05-16 00:41:42 +02:00
parent c48efb161a
commit 2da20b9d79
4 changed files with 20 additions and 8 deletions
@@ -149,7 +149,10 @@ public class Player : MonoBehaviour
if (transform.position.y < 0)
{
world.ShowDeadScreen();
if(Time.timeScale > 0)
{
world.ShowDeadScreen();
}
}
if (Input.GetKeyDown(KeyCode.Escape))