I hoping somone can help with the following error I am getting
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Cannot find reference BonfireGameInterface in the component tree
#0 BonfireHasGameRef.gameRef (package:bonfire/util/bonfire_game_ref.dart:21:7)
Instance of 'TurnManager' cannot be added to Instance of 'BonfireGame' because it already has a
parent: Instance of 'BonfireGame'
Im currently using flutter flame engine and Bonfire. The bonfire game is embedded within the flame game. Essentially when sprite component touches an enemy component I use gameRef.overlays.add() to display the bonfire game. when the game is done i use gameRef.overlays.remove() to remove the bonfire game. The issue is the next time the play component touches an enemy component I get the above error. Any help will be greatly appreciated.