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
0cb1a22a
Commit
0cb1a22a
authored
Apr 07, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
맵 불러올때마다 바닥 좌표 계속 초기화하던거 수정
parent
0ea6b148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
Map.cs
Assets/Scripts/Map/Map.cs
+1
-19
No files found.
Assets/Scripts/Map/Map.cs
View file @
0cb1a22a
...
...
@@ -199,34 +199,16 @@ public class Map : MonoBehaviour
Debug
.
Log
(
"Wall doesn't exists between : "
+
floor1
.
mapPos
+
", "
+
floor2
.
mapPos
);
}
private
void
LoadObjects
()
{
for
(
int
i
=
0
;
i
<
floors
.
transform
.
childCount
;
i
++)
{
Floor
floor
=
floors
.
transform
.
GetChild
(
i
).
GetComponent
<
Floor
>();
floorGrid
.
Add
(
floor
.
mapPos
,
floor
);
}
for
(
int
i
=
0
;
i
<
walls
.
transform
.
childCount
;
i
++)
{
Wall
wall
=
walls
.
transform
.
GetChild
(
i
).
GetComponent
<
Wall
>();
wallGrid
.
Add
(
wall
.
mapPos
,
wall
);
}
}
public
void
InitiateMap
()
{
floorGrid
=
new
Dictionary
<
Vector2Int
,
Floor
>();
wallGrid
=
new
Dictionary
<
Vector2
,
Wall
>();
startFloors
=
new
List
<
Floor
>();
//LoadObjects();
}
private
void
Awake
()
{
/*floorGrid = new Dictionary<Vector2Int, Floor>();
wallGrid = new Dictionary<Vector2, Wall>();
startFloors = new List<Floor>();
LoadObjects();*/
}
// Start is called before the first frame update
...
...
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