jheredia / pack-it-up

Frantic packing action game about a group of backpackers working together to complete their trip while trying to keep their luggage and sanity.
1 stars 1 forks source link

End zone update (using bool flag to track players in the end zone) #16

Closed IsaacS2 closed 1 week ago

IsaacS2 commented 2 weeks ago

The GameStateManager has a new bool and int value to keep track of when players are in an end zone. The bool _exitCondition is set to true when a player triggers an end zone, and is set to false when the last player in an end zone exits said end zone. If _exitCondition is true when the players have obtained all mandatory items, the EndGameSuccessState() is immediately called if at least 1 player is also on an end zone. The end zone light cue does not follow this logic yet since the inventory still needs to be implemented to this branch.