Commit 25fa1ed5 by Philipp Adolf

Remove commented out code

parent c73f6fd0
......@@ -72,11 +72,6 @@ public class PlayerControl : MonoBehaviour
void onControllerCollider(RaycastHit2D hit)
{
//// bail out on plain old ground hits
//if (hit.normal.y == 1f)
// return;
Rigidbody2D body = hit.collider.gameObject.GetComponent<Rigidbody2D>();
if (body)
{
......@@ -84,12 +79,8 @@ public class PlayerControl : MonoBehaviour
body.AddForce(_controller.getDirectionOfMovement() * pushForce);
//TODO set is dashing to false
}
// logs any collider hits
//Debug.Log( "flags: " + _controller.collisionState + ", hit.normal: " + hit.normal );
}
void Update()
{
// grab our current velocity to use as a base for all calculations
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment