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
3387d449
Commit
3387d449
authored
Jan 22, 2018
by
16홍선우
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ManagementUIController added (unfinished)
parent
a884f048
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
ManagementUIController.cs
Assets/Scripts/ManagementUIController.cs
+62
-0
ManagementUIController.cs.meta
Assets/Scripts/ManagementUIController.cs.meta
+13
-0
No files found.
Assets/Scripts/ManagementUIController.cs
0 → 100644
View file @
3387d449
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
=
}
}
Assets/Scripts/ManagementUIController.cs.meta
0 → 100644
View file @
3387d449
fileFormatVersion: 2
guid: 2c30431a1f1679f48abcfca63d03dc14
timeCreated: 1516610093
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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