Skip to content

Commit

Permalink
another bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fkavum committed May 3, 2023
1 parent 107493b commit 2f27952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LD53/Assets/Code/DeliveryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ private void OnTriggerEnter2D(Collider2D col)
if (packageController)
{
var package = packageController.RemovePackage();
if (package == null)
{
return;
}
package.SetPackageState(PackageState.Delivered);
package.transform.DOMove(deliveryPoint.position, 0.5f);
deliveredPackage = package;
Expand Down

0 comments on commit 2f27952

Please sign in to comment.