Skip to content

Commit

Permalink
Infinite collision bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandrem committed Jun 13, 2017
1 parent 7232522 commit a7cbbc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Assets/Scripts/ShipManagement/ShipMovementScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,14 @@ void Update ()
UpdateMovement();
CheckFireLineCollisions();
Phases.CheckScheduledChanges();
}

private void LateUpdate()
{
ClearCollision();
}

private void ClearCollision()
{
ObstacleHitEnter = null;
CollidedWith = null;
}

private void CheckFireLineCollisions()
Expand Down

0 comments on commit a7cbbc8

Please sign in to comment.