Commit e2f3e74b authored by 16도재형's avatar 16도재형

Unit select WIP

parent 2e0a2048
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIManager : MonoBehaviour {
......@@ -27,6 +28,17 @@ public class UIManager : MonoBehaviour {
public GameObject EpicTab, HighTab, IntermediateTab, LowTab; // Unit production
public GameObject CityTab, CityBuildingTab, NormalBuildingTab; // Building production
void Update()
{
if (GameManager.I.IsThereTodos)
{
MapUI.transform.Find("EndTurn").GetComponentInChildren<Text>().text = "유닛이 명령을 기다리고 있습니다";
}
else
{
MapUI.transform.Find("EndTurn").GetComponentInChildren<Text>().text = "다음 턴";
}
}
//// Resource bar UI ////
public void MapUIActive() // Map UI tab
......@@ -111,6 +123,13 @@ public class UIManager : MonoBehaviour {
{
SkillSet.SetActive(!SkillSet.activeSelf);
}
public void EndTurnActive()
{
if (GameManager.I.IsThereTodos)
{
GameManager.I.SelectNextUnit();
}
}
//// Management UI (Production Selection) ////
public void UnitSelTabActive()
......
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