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
8509e01b
Commit
8509e01b
authored
Jan 30, 2019
by
abpo11
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
플레이어 방 좌표 및 생명석 하이라이트 고침
parent
f3bc76e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
Player.cs
Assets/Scripts/Characters/Player.cs
+2
-2
PlayerController.cs
Assets/Scripts/Characters/PlayerController.cs
+13
-6
No files found.
Assets/Scripts/Characters/Player.cs
View file @
8509e01b
...
...
@@ -14,13 +14,13 @@ public class Player : MonoBehaviour {
// Use this for initialization
void
Start
()
{
ttx
=
(
int
)(
transform
.
position
.
x
/
24f
);
tty
=
(
int
)(
transform
.
position
.
y
/
24f
);
tty
=
(
int
)(
transform
.
position
.
y
-
0.9f
/
24f
);
}
// 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
.
tempRoom
=
MapManager
.
mapGrid
[
tx
,
ty
];
...
...
Assets/Scripts/Characters/PlayerController.cs
View file @
8509e01b
...
...
@@ -96,11 +96,20 @@ public class PlayerController : MonoBehaviour
rb
.
gravityScale
=
rbAttackGravityScale
;
return
;
}
if
(
GetItemRay
()
==
false
&&
lastDropItem
!=
null
)
if
(
GetItemRay
()
==
false
)
{
lastDropItem
.
HighlightSwitch
(
false
);
lastDropItem
=
null
;
if
(
lastDropItem
!=
null
)
{
lastDropItem
.
HighlightSwitch
(
false
);
lastDropItem
=
null
;
}
if
(
lastLifeStone
!=
null
)
{
lastLifeStone
.
HighlightSwitch
(
false
);
lastLifeStone
=
null
;
}
}
if
(
interaction
!=
1f
)
interactionCoolDown
=
true
;
if
(
lastDropItem
!=
null
&&
interaction
==
1f
&&
interactionCoolDown
)
{
...
...
@@ -288,7 +297,6 @@ public class PlayerController : MonoBehaviour
if
(
lastLifeStone
!=
null
)
{
lastLifeStone
.
HighlightSwitch
(
false
);
}
lastLifeStone
=
stoneTemp
;
stoneTemp
.
HighlightSwitch
(
true
);
...
...
@@ -300,7 +308,6 @@ public class PlayerController : MonoBehaviour
if
(
lastDropItem
!=
null
)
{
lastDropItem
.
HighlightSwitch
(
false
);
}
lastDropItem
=
temp
;
temp
.
HighlightSwitch
(
true
);
...
...
@@ -338,7 +345,7 @@ public class PlayerController : MonoBehaviour
}
}*/
return
hit1
.
collider
!=
null
;
return
hit1
.
collider
!=
null
;
}
bool
IsInRope
()
// Is player in rope?
{
...
...
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