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
de2b26c8
Commit
de2b26c8
authored
Aug 14, 2019
by
18손재민
Committed by
18신대성
Aug 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
모든 바닥 승리 조건 항상 달성 돼있는 버그 수정
parent
2529924c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
MapManager.cs
Assets/Scripts/Managers/MapManager.cs
+2
-2
ClearCondition.cs
Assets/Scripts/Map/ClearCondition.cs
+0
-1
Map.cs
Assets/Scripts/Map/Map.cs
+11
-0
No files found.
Assets/Scripts/Managers/MapManager.cs
View file @
de2b26c8
...
@@ -74,8 +74,8 @@ public class MapManager : SingletonBehaviour<MapManager>
...
@@ -74,8 +74,8 @@ public class MapManager : SingletonBehaviour<MapManager>
currentMap
.
CreateObject
(
new
Vector2Int
((
int
)
temp
.
xPos
,
(
int
)
temp
.
yPos
),
ObjType
.
Mannequin
,
false
);
currentMap
.
CreateObject
(
new
Vector2Int
((
int
)
temp
.
xPos
,
(
int
)
temp
.
yPos
),
ObjType
.
Mannequin
,
false
);
break
;
break
;
case
TileMode
.
goalFloor
:
case
TileMode
.
goalFloor
:
currentMap
.
GetFloorAtPos
(
new
Vector2Int
((
int
)
temp
.
xPos
,
(
int
)
temp
.
yPos
)).
isGoalFloor
=
true
;
currentMap
.
SetGoalFloor
(
new
Vector2Int
((
int
)
temp
.
xPos
,
(
int
)
temp
.
yPos
))
;
currentMap
.
GetFloorAtPos
(
new
Vector2Int
((
int
)
temp
.
xPos
,
(
int
)
temp
.
yPos
)).
RefreshGoal
();
//
currentMap.GetFloorAtPos(new Vector2Int((int)temp.xPos, (int)temp.yPos)).RefreshGoal();
break
;
break
;
default
:
default
:
break
;
break
;
...
...
Assets/Scripts/Map/ClearCondition.cs
View file @
de2b26c8
...
@@ -28,7 +28,6 @@ public class ClearCondition
...
@@ -28,7 +28,6 @@ public class ClearCondition
{
{
GameManager
.
inst
.
clearCounter
--;
GameManager
.
inst
.
clearCounter
--;
isDone
=
true
;
isDone
=
true
;
//Debug.Log(GameManager.inst.clearCounter)
if
(
GameManager
.
inst
.
clearCounter
==
0
)
if
(
GameManager
.
inst
.
clearCounter
==
0
)
GameManager
.
inst
.
StartCoroutine
(
GameManager
.
inst
.
ClearStage
());
GameManager
.
inst
.
StartCoroutine
(
GameManager
.
inst
.
ClearStage
());
}
}
...
...
Assets/Scripts/Map/Map.cs
View file @
de2b26c8
...
@@ -99,6 +99,17 @@ public class Map : MonoBehaviour
...
@@ -99,6 +99,17 @@ public class Map : MonoBehaviour
for
(
int
j
=
yMin
;
j
<=
yMax
;
j
++)
for
(
int
j
=
yMin
;
j
<=
yMax
;
j
++)
CreateFloor
(
new
Vector2Int
(
i
,
j
));
CreateFloor
(
new
Vector2Int
(
i
,
j
));
}
}
/// <summary>
/// Create floor in rectangular area between pos1 and pos2.
/// </summary>
/// <param name="pos1"></param>
/// <param name="pos2"></param>
public
void
SetGoalFloor
(
Vector2Int
pos
)
{
GetFloorAtPos
(
pos
).
isGoalFloor
=
true
;
if
(
GameManager
.
aFloor
>=
0
)
clearConditions
[
GameManager
.
aFloor
].
IsDone
(
0
,
1
);
}
/// <summary>
/// <summary>
/// Remove floor at position.
/// Remove floor at position.
/// </summary>
/// </summary>
...
...
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