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
7a175f3c
Commit
7a175f3c
authored
Jul 05, 2018
by
김주영
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReEdit
parent
caef6b5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
UIManager.cs
Assets/Script/UI/UIManager.cs
+10
-8
No files found.
Assets/Script/UI/UIManager.cs
View file @
7a175f3c
...
...
@@ -6,13 +6,15 @@ using CivModel;
public
class
UIManager
:
MonoBehaviour
{
GameObject
mapUI
;
GameObject
managementUI
;
GameObject
questUI
;
// Use this for initialization
void
Start
()
// Use this for initialization
void
Start
()
{
GameObject
map
=
GameObject
.
Find
(
"MapUI"
);
GameObject
management
=
GameObject
.
Find
(
"ManagementUI"
);
GameObject
quest
=
GameObject
.
Find
(
"QuestUI"
);
mapUI
=
GameObject
.
Find
(
"MapUI"
);
managementUI
=
GameObject
.
Find
(
"ManagementUI"
);
questUI
=
GameObject
.
Find
(
"QuestUI"
);
}
// Update is called once per frame
...
...
@@ -26,9 +28,9 @@ public class UIManager : MonoBehaviour
if
(
go
.
activeSelf
==
false
)
{
go
.
SetActive
(
true
);
if
(
go
!=
map
)
map
.
SetActive
(
false
);
if
(
go
!=
management
)
management
.
SetActive
(
false
);
if
(
go
!=
quest
)
quest
.
SetActive
(
false
);
if
(
go
!=
map
UI
)
mapUI
.
SetActive
(
false
);
if
(
go
!=
management
UI
)
managementUI
.
SetActive
(
false
);
if
(
go
!=
quest
UI
)
questUI
.
SetActive
(
false
);
}
else
{
...
...
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