Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
man-in-the-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
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
MIM
man-in-the-mirror
Commits
81c4870a
Commit
81c4870a
authored
Aug 02, 2019
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
메뉴버튼, 리셋버튼 UI 적용
parent
0e845955
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
311 additions
and
4 deletions
+311
-4
PlayStage.unity
Assets/Scenes/PlayStage.unity
+305
-1
CameraTurret.cs
Assets/Scripts/Interactors/CameraTurret.cs
+1
-3
GameManager.cs
Assets/Scripts/Managers/GameManager.cs
+5
-0
No files found.
Assets/Scenes/PlayStage.unity
View file @
81c4870a
This diff is collapsed.
Click to expand it.
Assets/Scripts/Interactors/CameraTurret.cs
View file @
81c4870a
...
...
@@ -27,9 +27,7 @@ public class CameraTurret : MonoBehaviour, IObject, IBreakable, IPlayerInteracto
{
if
(
Position
.
IsInAdjacentArea
(
pos
,
1
)
&&
MapManager
.
inst
.
currentMap
.
GetWallAtPos
((
Vector2
)(
Position
+
pos
)
/
2
)
==
null
)
{
GameManager
.
inst
.
isGameOver
=
true
;
StartCoroutine
(
GameManager
.
inst
.
RestartStage
());
GameManager
.
inst
.
uiGenerator
.
ResetAllClearUIs
();
GameManager
.
inst
.
GameOver
();
//TODO : Restart Level
}
}
...
...
Assets/Scripts/Managers/GameManager.cs
View file @
81c4870a
...
...
@@ -59,6 +59,7 @@ public class GameManager : SingletonBehaviour<GameManager>
IEnumerator
Whiteout
(
bool
goToWhite
)
{
whiteout
.
gameObject
.
SetActive
(
true
);
float
setTime
=
0.2f
;
float
resetTime
=
1.5f
;
if
(
goToWhite
)
...
...
@@ -78,6 +79,7 @@ public class GameManager : SingletonBehaviour<GameManager>
yield
return
null
;
}
whiteout
.
color
=
new
Color
(
1
,
1
,
1
,
0
);
whiteout
.
gameObject
.
SetActive
(
false
);
}
}
...
...
@@ -95,7 +97,10 @@ public class GameManager : SingletonBehaviour<GameManager>
public
void
GameOver
()
{
Debug
.
Log
(
"Game Over!"
);
isGameOver
=
true
;
StopAllCoroutines
();
StartCoroutine
(
RestartStage
());
uiGenerator
.
ResetAllClearUIs
();
}
public
IEnumerator
RestartStage
()
...
...
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