Commit 7a175f3c authored by 김주영's avatar 김주영

ReEdit

parent caef6b5b
...@@ -6,13 +6,15 @@ using CivModel; ...@@ -6,13 +6,15 @@ using CivModel;
public class UIManager : MonoBehaviour public class UIManager : MonoBehaviour
{ {
GameObject mapUI; GameObject mapUI;
GameObject managementUI;
GameObject questUI;
// Use this for initialization // Use this for initialization
void Start() void Start()
{ {
GameObject map = GameObject.Find("MapUI"); mapUI = GameObject.Find("MapUI");
GameObject management = GameObject.Find("ManagementUI"); managementUI = GameObject.Find("ManagementUI");
GameObject quest = GameObject.Find("QuestUI"); questUI = GameObject.Find("QuestUI");
} }
// Update is called once per frame // Update is called once per frame
...@@ -26,9 +28,9 @@ public class UIManager : MonoBehaviour ...@@ -26,9 +28,9 @@ public class UIManager : MonoBehaviour
if (go.activeSelf == false) if (go.activeSelf == false)
{ {
go.SetActive(true); go.SetActive(true);
if (go != map) map.SetActive(false); if (go != mapUI) mapUI.SetActive(false);
if (go != management) management.SetActive(false); if (go != managementUI) managementUI.SetActive(false);
if (go != quest) quest.SetActive(false); if (go != questUI) questUI.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