Commit 3387d449 authored by 16홍선우's avatar 16홍선우

ManagementUIController added (unfinished)

parent a884f048
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using CivPresenter;
using CivModel;
using CivModel.Common;
public class ManagementUIController : MonoBehaviour {
public GameObject managementUI;
public Button managementTab;
public LinkedList<Production> mProduction;
public LinkedList<Production> mDeployment;
private GameObject gameManagerObject;
private CIVGameManager gameManager;
private Presenter mPresenter;
public Transform newProduction;
public Transform newPlacement;
public Button pioneer;
public void setControlUI ()
{
if (managementTab == true)
managementUI.gameObject.SetActive(true);
else
managementUI.gameObject.SetActive(false);
}
public void productionQ (CivModel.Production produce)
{
if (pioneer == true)
{
Instantiate(newProduction);
}
if (produce.Completed == true)
Destroy(newProduction);
}
public void placementQ (CivModel.Production produce)
{
if (produce.Completed == true)
Instantiate(newPlacement);
}
void Start()
{
gameManagerObject = CIVGameManager.GetGameManager();
gameManager = gameManagerObject.GetComponent<CIVGameManager>();
mPresenter = gameManager.GetPresenter();
}
void Update()
{
mProduction =
}
}
fileFormatVersion: 2
guid: 2c30431a1f1679f48abcfca63d03dc14
timeCreated: 1516610093
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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