Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dyingIsMainstream
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gamejam-gpn15
dyingIsMainstream
Commits
a5074f8d
Commit
a5074f8d
authored
Jun 04, 2015
by
Tim Reiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
players are now colliding.
parent
d9140ec0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
2 deletions
+0
-2
Player.prefab
Assets/Prefabs/Player.prefab
+0
-0
ground.prefab
Assets/Prefabs/ground.prefab
+0
-0
Trap.cs
Assets/Scripts/Trap.cs
+0
-2
game.unity
Assets/game.unity
+0
-0
TagManager.asset
ProjectSettings/TagManager.asset
+0
-0
No files found.
Assets/Prefabs/Player.prefab
View file @
a5074f8d
No preview for this file type
Assets/Prefabs/ground.prefab
View file @
a5074f8d
No preview for this file type
Assets/Scripts/Trap.cs
View file @
a5074f8d
...
@@ -7,10 +7,8 @@ public class Trap : MonoBehaviour {
...
@@ -7,10 +7,8 @@ public class Trap : MonoBehaviour {
void
OnTriggerEnter2D
(
Collider2D
other
)
void
OnTriggerEnter2D
(
Collider2D
other
)
{
{
Debug
.
Log
(
"trigg"
);
if
(
other
.
tag
==
"Player"
)
if
(
other
.
tag
==
"Player"
)
{
{
Debug
.
Log
(
"player col"
);
other
.
GetComponent
<
PlayerHealth
>().
changeHealthBy
(-
damagePoints
);
other
.
GetComponent
<
PlayerHealth
>().
changeHealthBy
(-
damagePoints
);
transform
.
position
=
new
Vector2
(
50
,
50
);
//TODO setze auf 1000 oder so, zur sicherheit.
transform
.
position
=
new
Vector2
(
50
,
50
);
//TODO setze auf 1000 oder so, zur sicherheit.
}
}
...
...
Assets/game.unity
View file @
a5074f8d
No preview for this file type
ProjectSettings/TagManager.asset
View file @
a5074f8d
No preview for this file type
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