This commit is contained in:
allylikesfrogs
2023-05-04 13:53:37 -07:00
parent 7070b33ad3
commit 96acb9ba5f
5 changed files with 78 additions and 77 deletions

View File

@@ -222,6 +222,11 @@ public class PlayerBehavior : MonoBehaviour
}
}
void Bounce()
{
}
void OnTriggerEnter2D(Collider2D col)
{
if (col.tag == "grappleSurface")
@@ -243,6 +248,10 @@ public class PlayerBehavior : MonoBehaviour
this.playerController.in_range = true;
this.playerController.enemy = col.transform.parent.gameObject;
}
else if (col.tag == "bouncy")
{
Bounce();
}
}
void OnTriggerExit2D(Collider2D col)