bird level done-ish

This commit is contained in:
Rizvee committed 2022-02-27 01:48:56 -06:00
1 parent fbe576872e
commit 4876431c4a
22 files changed
+7506 -599

No files matched your search

+18
View File
@@ -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();
}
}
}