Skip to content

Static instance not properly disposed #3

@adrian-bio

Description

@adrian-bio

It seems like the UserWise instance is not properly disposed when the editor stops playing the game, every second attempt to play the game there is a nullref happening and userwise can not be initialized.
Additionally, you have to manually unsubscribe to the EventHandlers like OnSessionInitalized, otherwise the subscribed events stack between sessions.

Every second session:
image
Event not getting disposed correctly and keeping subscribers between sessions:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions