mirror of
https://github.com/Kizuren/SynthMaze.git
synced 2026-01-07 23:19:16 +01:00
Changes to SharpBlock
This commit is contained in:
parent
cd1e6602a8
commit
d06eeb6603
3 changed files with 39 additions and 4 deletions
|
|
@ -67,6 +67,14 @@ public class SharpBlock : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
void OnTriggerEnter2D(Collider2D c2d)
|
||||
{
|
||||
if (c2d.CompareTag("Player"))
|
||||
{
|
||||
LevelMgr.killPlayer = true;
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator ChangeDirection()
|
||||
{
|
||||
isChangingDirection = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue