ApericotStudio / Poltergeist

Main repository for development of the Poltergeist game
0 stars 0 forks source link

Fix: npc roam #406

Closed KiwiLT closed 9 months ago

KiwiLT commented 9 months ago

Description

NPCs now correctly spend the given amount of time in a room.

Setting up testing environment

  1. In the project window navigate to Project/Assets/Scenes and open the "FinalExam" scene.
  2. Press Play.

Fix Review

Criteria:

Checklist

These checks should always be true for your pull request

KiwiLT commented 9 months ago

Npcs got stuck due to not making the switch room coroutine again when it finished, as saving a coroutine as a Coroutine object never becomes null and just keeps the information. I now check if they have a switch room object with a bool. Should work now.