Commit 38668c35 authored by 16홍선우's avatar 16홍선우

ManagementUI button added

parent a28fd775
...@@ -56,7 +56,7 @@ GameObject: ...@@ -56,7 +56,7 @@ GameObject:
- component: {fileID: 222753816676270096} - component: {fileID: 222753816676270096}
- component: {fileID: 114644775417974404} - component: {fileID: 114644775417974404}
m_Layer: 5 m_Layer: 5
m_Name: Placement1 m_Name: Deployment1
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
......
This diff is collapsed.
fileFormatVersion: 2
guid: 77c6f854b20c9f34ea22469c907e11bc
timeCreated: 1516266566
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
This diff is collapsed.
fileFormatVersion: 2
guid: ef8d1e641fc76d24b94738577f2368e0
timeCreated: 1516266566
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
...@@ -8,7 +8,7 @@ using CivModel.Common; ...@@ -8,7 +8,7 @@ using CivModel.Common;
public class ManagementUIController : MonoBehaviour { public class ManagementUIController : MonoBehaviour {
public GameObject managementUI; public Canvas managementUI;
public Button managementTab; public Button managementTab;
public LinkedList<Production> mProduction; public LinkedList<Production> mProduction;
...@@ -30,9 +30,9 @@ public class ManagementUIController : MonoBehaviour { ...@@ -30,9 +30,9 @@ public class ManagementUIController : MonoBehaviour {
public void setControlUI () public void setControlUI ()
{ {
if (managementTab == true) if (managementTab == true)
managementUI.gameObject.SetActive(true); managementUI.enabled = true;// managementUI.gameObject.SetActive(true);
else else
managementUI.gameObject.SetActive(false); managementUI.enabled = false;// managementUI.gameObject.SetActive(false);
} }
...@@ -45,6 +45,11 @@ public class ManagementUIController : MonoBehaviour { ...@@ -45,6 +45,11 @@ public class ManagementUIController : MonoBehaviour {
void Update() void Update()
{ {
if (managementTab == true)
managementUI.enabled = true;
else
managementUI.enabled = false;
mProduction = mPlayer.Production; // The list of the not-finished productions of this player mProduction = mPlayer.Production; // The list of the not-finished productions of this player
mDeployment = mPlayer.Deployment; // The list of the ready-to-deploy productions of this player mDeployment = mPlayer.Deployment; // The list of the ready-to-deploy productions of this player
} }
......
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