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
b035ac60
Commit
b035ac60
authored
Jan 25, 2018
by
16홍선우
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ManagementUIController modifying
parent
30a7a9e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
ManagementUIController.cs
Assets/Scripts/ManagementUIController.cs
+21
-6
No files found.
Assets/Scripts/ManagementUIController.cs
View file @
b035ac60
...
...
@@ -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
p
ioneer
;
// new unit production when clicked
public
GameObject
depPrefab
;
// prefab templates
public
Button
newP
ioneer
;
// 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
++)
...
...
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