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
af576cf5
Commit
af576cf5
authored
Jul 01, 2019
by
18신대성
Committed by
18손재민
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pair를 Generic이 아니게 바꿈
parent
b4394627
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
74 deletions
+82
-74
Pair.cs
Assets/Scripts/Generals/Pair.cs
+11
-6
Floor.cs
Assets/Scripts/Map/Floor.cs
+1
-0
Mirror.cs
Assets/Scripts/Map/Mirror.cs
+70
-68
No files found.
Assets/Scripts/Generals/Pair.cs
View file @
af576cf5
...
...
@@ -2,19 +2,24 @@
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
Pair
<
L
,
R
>
public
class
Pair
{
public
L
l
;
public
R
r
;
public
float
l
;
public
float
r
;
public
Pair
(
L
_l
,
R
_r
)
public
Pair
(
float
_l
,
float
_r
)
{
this
.
l
=
_l
;
this
.
r
=
_r
;
}
public
Pair
<
R
,
L
>
Swap
()
public
Pair
Swap
()
{
return
new
Pair
<
R
,
L
>(
r
,
l
);
return
new
Pair
(
r
,
l
);
}
public
Pair
ApplyMargin
(
float
margin
)
{
return
new
Pair
(
l
-
margin
,
r
+
margin
);
}
}
Assets/Scripts/Map/Floor.cs
View file @
af576cf5
...
...
@@ -9,6 +9,7 @@ public class Floor : MonoBehaviour
/// </summary>
public
Vector2Int
mapPos
;
public
bool
isGoalFloor
=
false
;
public
IObject
objOnFloor
=
null
;
// Start is called before the first frame update
void
Start
()
...
...
Assets/Scripts/Map/Mirror.cs
View file @
af576cf5
This diff is collapsed.
Click to expand it.
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