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
d591bee2
Commit
d591bee2
authored
Aug 10, 2019
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
민근이 오류 해결 (사이드에서 거짓탄쏘면 바로앞바닥 복사 안되는ㄱ거
parent
2598cd3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Mirror.cs
Assets/Scripts/Map/Mirror.cs
+13
-0
No files found.
Assets/Scripts/Map/Mirror.cs
View file @
d591bee2
...
...
@@ -79,6 +79,19 @@ public class Mirror : Wall, IBulletInteractor, IBreakable
int
minMapRange
=
-
1
*
MapManager
.
inst
.
currentMap
.
maxMapSize
-
1
;
int
maxMapRange
=
MapManager
.
inst
.
currentMap
.
maxMapSize
+
1
;
// start reflection
Vector2Int
frontFloorPos
=
dir
?
new
Vector2Int
(
Mathf
.
RoundToInt
(
mapPos
.
x
),
Mathf
.
RoundToInt
(
mapPos
.
y
+
0.5f
*
side
))
:
new
Vector2Int
(
Mathf
.
RoundToInt
(
mapPos
.
x
+
0.5f
*
side
),
Mathf
.
RoundToInt
(
mapPos
.
y
));
int
frontFloorCount
=
0
;
if
(
floorCountGrid
.
TryGetValue
(
frontFloorPos
,
out
frontFloorCount
))
{
if
(
frontFloorCount
==
0
)
floorCountGrid
[
frontFloorPos
]++;
// have floor
}
else
// no floor on there
{
floorCountGrid
.
Add
(
frontFloorPos
,
-
1
);
}
for
(;
Mathf
.
Abs
(
i
)
<
maxMapRange
;
i
+=
side
)
{
// check walls and copy
...
...
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