lots of small changes lol

worked on tambourine level layout, improved tambourine throwing, created enemy respawn system
This commit is contained in:
slevy14
2023-04-29 14:51:50 -07:00
parent ed3fcf541c
commit 405e20ca2f
11 changed files with 10894 additions and 528 deletions

View File

@@ -97,14 +97,14 @@ public class PlayerMovement : MonoBehaviour
CheckDirectionToFace(_moveInput.x > 0);
#endregion
if (!IsJumping)
{
print("not jumping");
}
else
{
print("jumping, " + RB.velocity.y);
}
// if (!IsJumping)
// {
// print("not jumping");
// }
// else
// {
// print("jumping, " + RB.velocity.y);
// }
#region COLLISION CHECKS
if (!IsJumping)
@@ -164,7 +164,7 @@ public class PlayerMovement : MonoBehaviour
Jump();
if (!IsGrounded() && in_range && trumpet > 0)
{
Destroy(enemy.gameObject);
enemy.GetComponent<EnemyPatrol>().DefeatEnemy();
enemy = null;
in_range = false;
}