Commit b035ac60 authored by 16홍선우's avatar 16홍선우

ManagementUIController modifying

parent 30a7a9e9
......@@ -21,19 +21,28 @@ public class ManagementUIController : MonoBehaviour {
private Presenter mPresenter;
private Game mGame;
public GameObject[] PQlist;
public GameObject[] DQlist;
public List<GameObject> PQlist;
public List<GameObject> DQlist;
public GameObject proPrefab;
public GameObject depPrefab; // prefab templates
public Button pioneer; // new unit production when clicked
public GameObject depPrefab; // prefab templates
public Button newPioneer; // new unit production when clicked
public void SetManagementUI (bool val)
public void SetManagementUI(bool val)
{
Debug.Log("manUI : " + val);
managementUI.enabled = val;// managementUI.gameObject.SetActive(true);// managementUI.gameObject.SetActive(false);
managementUI.enabled = val;
}
public GameObject MakeDeploymentItem(GameObject prefab, Unit unit)
{
GameObject item = Instantiate(prefab);
item.GetComponents<Text>()[1].text = unit.GetType().ToString();
return item;
}
public void ManageButton() // Management tab on/off button
{
if (mPresenter.State == Presenter.States.Normal)
......@@ -87,6 +96,12 @@ public class ManagementUIController : MonoBehaviour {
}
public void AddNewProduction(bool val)
{
Debug.Log("new production in queue");
}
public void MakeProductionQ()
{
for (int i = 0; i < mProduction.Count; i++)
......
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