fastjengine / FastJ

An open-source, Java-based 2D game engine.

Home Page:https://fastj.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Scene/SimpleManager don't destroy behaviors when reset

lucasstarsz opened this issue · comments

What happened?

Neither the Scene class nor the SimpleManager class destroy behaviors when it is reset. This can be checked through placing a logging statement inside the destroy method of any Behavior, then attaching it to a game object within any one of these managers.

How to Reproduce the Error

1. Add a logging statement to any Behavior's destroy() method.
2. Attach said Behavior to any GameObject within a Scene or SimpleManager.
3. Run the program.
4. See error

FastJ Version

1.5.0 (Latest Version)

Java Version

Java 11, Java 16

Relevant Exceptions/Log Output

N/A (The log does not print out.)

Code of Conduct

  • I agree to follow this project's Code of Conduct