Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
civilization-iii
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
true-history-committee
civilization-iii
Commits
e2f3e74b
Commit
e2f3e74b
authored
Feb 12, 2018
by
16도재형
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unit select WIP
parent
2e0a2048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
UIManager.cs
Assets/Scripts/UIManager.cs
+19
-0
No files found.
Assets/Scripts/UIManager.cs
View file @
e2f3e74b
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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment