From 773e9d4a49001fb35da1df98f6bdfe964aa08f3b Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Wed, 11 Nov 2020 20:46:46 +0100 Subject: Update to new Unity version --- td/Assets/Scripts/mainGUI.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'td/Assets/Scripts/mainGUI.cs') diff --git a/td/Assets/Scripts/mainGUI.cs b/td/Assets/Scripts/mainGUI.cs index 26ec78b..d5019ce 100644 --- a/td/Assets/Scripts/mainGUI.cs +++ b/td/Assets/Scripts/mainGUI.cs @@ -6,7 +6,8 @@ using UnityEngine; public class MainGui : MonoBehaviour { [Header("Scripting vars")] public Player Player; // Reference to the player object, should be set in designer - + + private GameObject _pnlMenu; private GameObject _pnlSidebar; private GameObject _pnlSettings; @@ -25,7 +26,7 @@ public class MainGui : MonoBehaviour { private Text _txtGoHighScore; private Text _txtGoNewHighScore; - private bool _sidebarExpanded; + public bool _sidebarExpanded; private readonly float[] _sidebarStates = new float[2] {0f, -202.4f}; // The x position of the sidebar expanded or collapsed private bool _menuActive; -- cgit v1.2.3