From 5b3de2e587a16b532ef35bd45a2146edf02b8e08 Mon Sep 17 00:00:00 2001 From: slevy14 Date: Fri, 14 Apr 2023 15:59:13 -0700 Subject: [PATCH] cleaned up comments in player behavior script --- Assets/Scripts/PlayerBehavior.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Assets/Scripts/PlayerBehavior.cs b/Assets/Scripts/PlayerBehavior.cs index 83374be..d2fce03 100644 --- a/Assets/Scripts/PlayerBehavior.cs +++ b/Assets/Scripts/PlayerBehavior.cs @@ -63,16 +63,7 @@ public class PlayerBehavior : MonoBehaviour { grapplingGun.GrappleToTambourine(tambourine); grapplingRope.isGrappling = true; } - } else { // grapple to grapple surface - // RaycastHit2D hit = Physics2D.Raycast(transform.position, new Vector2(0.500f * forward, 0.866f)); - // if (hit.collider != null) { - // print("hit " + hit.collider.gameObject.tag); - // if (hit.collider.gameObject.tag == "grappleSurface" && !grapplingRope.isGrappling) { - // grapplingGun.GrappleToSurface(hit.collider.gameObject.transform.position); - // grapplingRope.isGrappling = true; - // } - // else {print("missed");} - // } + } else { if (grappleSurface != null) { grapplingGun.GrappleToSurface(grappleSurface.transform.position); grapplingRope.isGrappling = true; @@ -102,10 +93,6 @@ public class PlayerBehavior : MonoBehaviour { } void FixedUpdate() { - // if (_hInput != 0) { - // _rb.velocity = new Vector2(_hInput * moveSpeed, _rb.velocity.y); - // } - if (grapplingRope.isGrappling && _hInput != 0 && !IsGrounded()) { // print("grappling force"); _rb.AddForce(new Vector2(_hInput * (airSpeed / 3), 0));