Skip to content
Snippets Groups Projects
Commit e66bde00 authored by 13519045 M Reyhanullah Budiaman's avatar 13519045 M Reyhanullah Budiaman
Browse files

fix UI bug

parent 052729cf
No related merge requests found
This diff is collapsed.
fileFormatVersion: 2
guid: be8eb897956f1f444be50a1e291c6228
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
...@@ -10,6 +10,7 @@ public class ShopController : MonoBehaviour ...@@ -10,6 +10,7 @@ public class ShopController : MonoBehaviour
private CinemachineVirtualCamera pauseCamera; private CinemachineVirtualCamera pauseCamera;
public GameObject pauseCameraObject; public GameObject pauseCameraObject;
public GameObject ShopUI; public GameObject ShopUI;
public GameObject eventSystem;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
...@@ -27,6 +28,7 @@ public class ShopController : MonoBehaviour ...@@ -27,6 +28,7 @@ public class ShopController : MonoBehaviour
Cursor.lockState = CursorLockMode.None; Cursor.lockState = CursorLockMode.None;
pauseCamera.Priority = 12; pauseCamera.Priority = 12;
ShopUI.SetActive(true); ShopUI.SetActive(true);
eventSystem.SetActive(false);
} }
if (isTrigerred && Input.GetKeyDown(KeyCode.Escape)) if (isTrigerred && Input.GetKeyDown(KeyCode.Escape))
...@@ -35,6 +37,7 @@ public class ShopController : MonoBehaviour ...@@ -35,6 +37,7 @@ public class ShopController : MonoBehaviour
Cursor.lockState = CursorLockMode.Locked; Cursor.lockState = CursorLockMode.Locked;
pauseCamera.Priority = -2; pauseCamera.Priority = -2;
ShopUI.SetActive(false); ShopUI.SetActive(false);
eventSystem.SetActive(true);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment