mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
bird level done-ish
This commit is contained in:
1 parent
fbe576872e
commit
4876431c4a
22 files changed
+7506
-599
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class FallTrigger : Trigger
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
public GameObject player;
|
||||
public Vector2 respawn;
|
||||
[SerializeField] bool canHurt = true;
|
||||
|
||||
public override void Action() {
|
||||
player.transform.position = respawn;
|
||||
if(canHurt) {
|
||||
player.GetComponent<Health>().takeHit();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user