Skip to content

Commit

Permalink
When game is closed, refund all tickets in current bidding
Browse files Browse the repository at this point in the history
  • Loading branch information
5jiji committed Mar 11, 2024
1 parent c21f1a5 commit f3f7faf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Assets/Scripts/BidHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,4 +611,10 @@ public GameManager GetGameManager()
{
return _gm;
}

public void OnApplicationQuit()
{
foreach (var ph in _biddingQ)
CancelTicketsUsed(ph, true);
}
}

0 comments on commit f3f7faf

Please sign in to comment.