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
02877020
Commit
02877020
authored
Jan 24, 2018
by
redsuncore
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move function Activated
이동 가능
parent
38668c35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
CIVGameManager.cs
Assets/Scripts/CIVGameManager.cs
+8
-1
CameraUIController.cs
Assets/Scripts/CameraUIController.cs
+11
-1
No files found.
Assets/Scripts/CIVGameManager.cs
View file @
02877020
...
...
@@ -275,6 +275,12 @@ public class CIVGameManager : MonoBehaviour, IView {
}
case
CivPresenter
.
Presenter
.
States
.
Move
:
{
CastRay
();
if
(
cellSelected
!=
null
)
{
mPresenter
.
FocusedPoint
=
pointSelected
.
Value
;
}
mPresenter
.
CommandApply
();
break
;
}
...
...
@@ -289,6 +295,7 @@ public class CIVGameManager : MonoBehaviour, IView {
case
CivPresenter
.
Presenter
.
States
.
SpecialAct
:
{
break
;
}
...
...
@@ -343,7 +350,7 @@ public class CIVGameManager : MonoBehaviour, IView {
mPresenter
.
CommandRefocus
();
Debug
.
Log
(
"refocus request"
);
}
if
(
Input
.
GetKey
(
KeyCode
.
S
))
if
(
Input
.
GetKey
(
KeyCode
.
S
))
mPresenter
.
CommandSelect
();
if
(
Input
.
GetKey
(
KeyCode
.
D
))
...
...
Assets/Scripts/CameraUIController.cs
View file @
02877020
...
...
@@ -18,6 +18,8 @@ public class CameraUIController : MonoBehaviour {
public
Button
WaitButton
;
public
GameObject
UnitInfo
;
public
GameObject
Actions
;
public
GameObject
TurnEnd
;
public
Image
Portrait
;
public
Text
UnitName
;
...
...
@@ -40,9 +42,10 @@ public class CameraUIController : MonoBehaviour {
public
void
SkillButtonMethod
()
{
Debug
.
Log
(
"SkillButton"
);
Debug
.
Log
(
mPresenter
.
SelectedActor
.
GetType
());
if
(
mPresenter
.
SelectedActor
.
GetType
()
==
typeof
(
Pioneer
))
{
mPresenter
.
SelectedActor
.
SpecialActs
[
0
].
Act
(
mPresenter
.
SelectedActor
.
PlacedPoint
);
mPresenter
.
CommandNumeric
(
0
);
Debug
.
Log
(
"Pioneer set City"
);
}
}
...
...
@@ -60,6 +63,13 @@ public class CameraUIController : MonoBehaviour {
mPresenter.CommandHoldingAttack
*/
}
public
void
ActiveCameraUI
(
bool
value
)
{
UnitInfo
.
SetActive
(
value
);
Actions
.
SetActive
(
value
);
TurnEnd
.
SetActive
(
value
);
}
// Use this for initialization
void
Start
()
{
...
...
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