BK-TN / Sanicball

Source code for Sanicball, an extraordinarily fast racing game.
https://sanicball.bdgr.zone
MIT License
93 stars 33 forks source link

MissingReferenceException when trying to change match settings after playing a race #12

Closed BK-TN closed 8 years ago

BK-TN commented 8 years ago

Branch: networking_without_unet To replicate:

  1. Start a local match
  2. Ready up and enter the race
  3. Quit to lobby again
  4. Open up the match settings panel and press apply
  5. Boom, exception. The camera that renders the stage layout maps is apparently missing.

This bug makes no sense at all since the reference is not actually missing. It appears to only be missing in the exact method the exception happens at - the Update() method of the same script is even using the reference constantly without an issue.

BK-TN commented 8 years ago

fuck me, forgot to unbind an event handler