Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tetra-tower
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Oenos
tetra-tower
Commits
604d8906
Commit
604d8906
authored
Jan 14, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into tetris
parents
c0813582
0cc78875
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fog.prefab
Assets/Prefabs/TetrisMap/fog.prefab
+1
-1
Player.cs
Assets/Scripts/Characters/Player.cs
+1
-1
PlayerController.cs
Assets/Scripts/Characters/PlayerController.cs
+2
-2
No files found.
Assets/Prefabs/TetrisMap/fog.prefab
View file @
604d8906
...
...
@@ -21,7 +21,7 @@ GameObject:
-
component
:
{
fileID
:
4921126351507724
}
-
component
:
{
fileID
:
212944448011839934
}
m_Layer
:
0
m_Name
:
F
og
m_Name
:
f
og
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
...
...
Assets/Scripts/Characters/Player.cs
View file @
604d8906
...
...
@@ -19,7 +19,7 @@ public class Player : MonoBehaviour {
// Update is called once per frame
void
Update
()
{
tx
=
(
int
)(
transform
.
position
.
x
/
24f
);
ty
=
(
int
)(
transform
.
position
.
y
/
24f
);
ty
=
(
int
)(
(
transform
.
position
.
y
-
0.9f
)
/
24f
);
if
((
ttx
!=
tx
||
tty
!=
ty
)
&&
MapManager
.
isRoomFalling
!=
true
)
{
MapManager
.
currentRoom
=
MapManager
.
mapGrid
[
tx
,
ty
];
...
...
Assets/Scripts/Characters/PlayerController.cs
View file @
604d8906
...
...
@@ -219,10 +219,10 @@ public class PlayerController : MonoBehaviour
{
if
(
element
.
name
==
"platform"
)
{
element
.
enabled
=
false
;
Physics2D
.
IgnoreCollision
(
element
,
transform
.
GetComponent
<
Collider2D
>(),
true
)
;
yield
return
new
WaitForSeconds
(
0.3f
);
while
(
isInRope
)
yield
return
new
WaitForSeconds
(
0.1f
);
element
.
enabled
=
true
;
Physics2D
.
IgnoreCollision
(
element
,
transform
.
GetComponent
<
Collider2D
>(),
false
)
;
isDownPlatform
=
false
;
}
}
...
...
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