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
79b286f6
Commit
79b286f6
authored
Jul 01, 2019
by
18신대성
Committed by
18손재민
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
거울 반사 새로운 로직으로 WIP
parent
9d4adecc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
Mirror.cs
Assets/Scripts/Map/Mirror.cs
+10
-12
No files found.
Assets/Scripts/Map/Mirror.cs
View file @
79b286f6
...
...
@@ -206,19 +206,17 @@ public class Mirror : Wall, IBulletInteractor, IBreakable
}
}
//Debug.Log(i + "th Wall End");
foreach
(
var
floor
in
copyFloorGrid
)
{
if
((
dir
?
floor
.
Key
.
y
:
floor
.
Key
.
x
)
==
i
)
{
if
(
IsInRay
(
parRay
,
PointToParRay
(
stPos
,
floor
.
Key
,
true
)))
{
/*copy floor*/
int
nextx
=
dir
?
floor
.
Key
.
x
:
Mathf
.
RoundToInt
(
2
*
ldPos
.
x
-
floor
.
Key
.
x
);
int
nexty
=
dir
?
Mathf
.
RoundToInt
(
2
*
ldPos
.
y
-
floor
.
Key
.
y
)
:
floor
.
Key
.
y
;
MapManager
.
inst
.
currentMap
.
CreateFloor
(
new
Vector2Int
(
nextx
,
nexty
));
yield
return
null
;
}
}
float
range
=
i
-
0.5f
;
float
minMap
=
-
1
*
MapManager
.
inst
.
currentMap
.
maxMapSize
/
2
-
1.5f
;
float
maxMap
=
MapManager
.
inst
.
currentMap
.
maxMapSize
/
2
+
1.5f
;
for
(
float
j
=
minMap
;
Mathf
.
Abs
(
j
)
<
maxMap
;
j
++)
{
/*
* if ((range, j) is in ray)
* {
* 사방에 있는거 카피, 그위의 오브젝트도 카피
* }
* */
}
//Debug.Log(i + "th Floor End");
foreach
(
var
obj
in
copyObjGrid
)
...
...
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