Skip to content

Commit

Permalink
Fix invisible cursor in menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Raendchen authored and Tilman Raendchen committed Feb 22, 2020
1 parent cbc17da commit dbf2807
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Nightmare/Assets/Scripts/GlobalHealth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using UnityEngine.SceneManagement;
public class GlobalHealth : MonoBehaviour
{
public static int currentHealth = 20;
public static int currentHealth = 1000;
public int internalHealth;
// Update is called once per frame
void Update()
Expand Down
6 changes: 6 additions & 0 deletions Nightmare/Assets/Scripts/Menus/MainMenuFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ public class MainMenuFunction : MonoBehaviour
public GameObject fadeOut;
public GameObject loadText;
public AudioSource buttonClick;

void Start()
{
Cursor.visible = true;
Cursor.lockState = CursorLockMode.None;
}

public void PlayGameButton()
{
Expand Down

0 comments on commit dbf2807

Please sign in to comment.