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
ebe702c7
Commit
ebe702c7
authored
Jul 02, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
오타 수정
parent
f52a29d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
MapEditor.cs
Assets/Scripts/MapEditor.cs
+22
-1
Assets2019-07-02-1-0-46.json
Assets2019-07-02-1-0-46.json
+1
-0
No files found.
Assets/Scripts/MapEditor.cs
View file @
ebe702c7
...
...
@@ -7,6 +7,27 @@ using System.IO;
public
class
MapEditor
:
SingletonBehaviour
<
MapEditor
>
{
public
class
objectData
{
public
TileMode
tag
;
public
float
xPos
,
yPos
;
public
objectData
(
TileMode
_tag
,
Vector2
_pos
)
{
tag
=
_tag
;
xPos
=
_pos
.
x
;
yPos
=
_pos
.
y
;
}
}
public
class
MapSaveData
{
public
List
<
objectData
>
objects
;
public
MapSaveData
()
{
objects
=
new
List
<
objectData
>();
}
public
void
AddObject
(
TileMode
_tag
,
Vector2
_pos
)
{
objects
.
Add
(
new
objectData
(
_tag
,
_pos
));
}
}
public
enum
TileMode
{
None
,
Floor
,
Normal
,
Mirror
,
StartFloor
,
Briefcase
,
Camera
,
WMannequin
,
BMannequin
,
goalFloor
};
public
Map
currentMap
;
public
Map
[]
stage
;
...
...
@@ -253,4 +274,4 @@ public class MapEditor : SingletonBehaviour<MapEditor>
}
}
}
}
\ No newline at end of file
}
Assets2019-07-02-1-0-46.json
0 → 100644
View file @
ebe702c7
{
"objects"
:[{
"tag"
:
0
,
"xPos"
:
25.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
1.0
},{
"tag"
:
1
,
"xPos"
:
0.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
0.0
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
2.0
,
"yPos"
:
2.0
},{
"tag"
:
1
,
"xPos"
:
-2.0
,
"yPos"
:
-2.0
},{
"tag"
:
1
,
"xPos"
:
-2.0
,
"yPos"
:
2.0
},{
"tag"
:
1
,
"xPos"
:
2.0
,
"yPos"
:
-2.0
},{
"tag"
:
4
,
"xPos"
:
-1.0
,
"yPos"
:
0.0
}]}
\ No newline at end of file
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