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
af34d9ac
Commit
af34d9ac
authored
Jun 24, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
머지함
parent
f2f7a852
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Mannequin.cs
Assets/Scripts/Interactors/Mannequin.cs
+2
-0
Map.cs
Assets/Scripts/Map/Map.cs
+2
-2
No files found.
Assets/Scripts/Interactors/Mannequin.cs
View file @
af34d9ac
...
...
@@ -46,6 +46,7 @@ public class Mannequin : MonoBehaviour, IObject, IBulletInteractor
if
(
bullet
is
TruthBullet
&&
tempColor
==
Color
.
black
)
{
Color
=
Color
.
white
;
isWhite
=
true
;
if
(
GameManager
.
white
>=
0
)
MapManager
.
inst
.
currentMap
.
clearConditions
[
GameManager
.
white
].
IsDone
(
1
);
if
(
GameManager
.
black
>=
0
)
...
...
@@ -54,6 +55,7 @@ public class Mannequin : MonoBehaviour, IObject, IBulletInteractor
else
if
(
bullet
is
FakeBullet
&&
tempColor
==
Color
.
white
)
{
Color
=
Color
.
black
;
isWhite
=
false
;
if
(
GameManager
.
black
>=
0
)
MapManager
.
inst
.
currentMap
.
clearConditions
[
GameManager
.
black
].
IsDone
(
1
);
if
(
GameManager
.
white
>=
0
)
...
...
Assets/Scripts/Map/Map.cs
View file @
af34d9ac
...
...
@@ -251,9 +251,9 @@ public class Map : MonoBehaviour
MapManager
.
inst
.
currentMap
.
clearConditions
[
GameManager
.
aTurret
].
IsDone
(
0
,
-
1
);
else
if
(
objectGrid
[
pos
].
GetType
()
==
ObjType
.
Mannequin
)
{
if
(
objectGrid
[
pos
].
GetObject
().
GetComponent
<
Mannequin
>().
Color
==
Color
.
w
hite
&&
GameManager
.
white
>=
0
)
if
(
objectGrid
[
pos
].
GetObject
().
GetComponent
<
Mannequin
>().
isW
hite
&&
GameManager
.
white
>=
0
)
MapManager
.
inst
.
currentMap
.
clearConditions
[
GameManager
.
white
].
IsDone
(
0
,
-
1
);
else
if
(
objectGrid
[
pos
].
GetObject
().
GetComponent
<
Mannequin
>().
Color
==
Color
.
black
&&
GameManager
.
black
>=
0
)
else
if
(
!
objectGrid
[
pos
].
GetObject
().
GetComponent
<
Mannequin
>().
isWhite
&&
GameManager
.
black
>=
0
)
MapManager
.
inst
.
currentMap
.
clearConditions
[
GameManager
.
black
].
IsDone
(
0
,
-
1
);
}
Destroy
(
objectGrid
[
pos
].
GetObject
());
...
...
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