I want to reset game to its initial state and removing all the components in a method. After resetting I get this error:
Bad state: Cannot find reference TurtleGame in the component tree
It seems the gameRef doesn't loaded already even if I have HasGameRef mixin in the signature of the class. Why gameRef has reference to the game when first time the game starts and the player component works correctly! but after resetting gameRef reference is missing?