Skip to content
Snippets Groups Projects
Commit e48ea081 authored by Julius Fredrik Einum's avatar Julius Fredrik Einum
Browse files

Changes to logic

parent b91c8fc1
No related branches found
No related tags found
2 merge requests!75Main,!74Juliuses nye super branch
......@@ -5,16 +5,15 @@ using UnityEngine.SceneManagement;
public class EndScreen : MonoBehaviour
{
float originalTime;
public void Start()
{
originalTime = Time.timeScale;
{
Time.timeScale = 0;
}
public void OnDestroy()
{
Time.timeScale = originalTime;
Time.timeScale = 1;
}
public void GiveUp()
......
......@@ -6,10 +6,10 @@ namespace BigSock.UI
{
public class PlayerMenu : MonoBehaviour
{
float originalTime;
public void Start()
{
originalTime = Time.timeScale;
Time.timeScale = 0;
}
public void ExitMenu()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment