Commit caef6b5b authored by 14양은정's avatar 14양은정

UIManager Edit

parent ab5a79fd
...@@ -10,7 +10,9 @@ public class UIManager : MonoBehaviour ...@@ -10,7 +10,9 @@ public class UIManager : MonoBehaviour
// Use this for initialization // Use this for initialization
void Start() void Start()
{ {
mapUI = GameObject.Find("MapUI"); GameObject map = GameObject.Find("MapUI");
GameObject management = GameObject.Find("ManagementUI");
GameObject quest = GameObject.Find("QuestUI");
} }
// Update is called once per frame // Update is called once per frame
...@@ -24,7 +26,9 @@ public class UIManager : MonoBehaviour ...@@ -24,7 +26,9 @@ public class UIManager : MonoBehaviour
if (go.activeSelf == false) if (go.activeSelf == false)
{ {
go.SetActive(true); go.SetActive(true);
if (go != mapUI) mapUI.SetActive(false); if (go != map) map.SetActive(false);
if (go != management) management.SetActive(false);
if (go != quest) quest.SetActive(false);
} }
else else
{ {
......
Markdown is supported
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