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
7e79d39a
Commit
7e79d39a
authored
Mar 23, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
singleton 클래스 사용하기 위해 푸쉬함, 실행하면 여전히 에러남 주의
parent
cdc21c09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Map.cs
Assets/Scripts/Map/Map.cs
+3
-2
No files found.
Assets/Scripts/Map/Map.cs
View file @
7e79d39a
...
...
@@ -83,9 +83,10 @@ public class Map : MonoBehaviour
RemoveFloor
(
pos
.
x
,
pos
.
y
);
}
public
void
CreateWall
(
GameObject
cube1
,
GameObject
cube
2
)
public
void
CreateWall
(
GameObject
floor1
,
GameObject
floor
2
)
{
Vector3
wallPos
=
(
cube1
.
transform
.
position
+
cube2
.
transform
.
position
)
/
2
;
Instantiate
(
wall
,
wallPos
,
Quaternion
.
identity
,
transform
).
transform
.
LookAt
(
cube1
.
transform
);
}
...
...
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