lots of small changes lol
worked on tambourine level layout, improved tambourine throwing, created enemy respawn system
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user