Making a singleton does not result too well. . .

FlowCanvas Forums Support Making a singleton does not result too well. . .

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1675
    Arturo SR
    Participant

    Hello and good day.

    I got this problem when I tried to replicate a singleton effect and using the SceneManager.sceneLoaded delegate (There’s an attached package with the scene and the json to recreate the flow).

    2018-01-31_2112

    The issue happens when the next level is pressed, I really don’t know why this happens (the logic it’s quite simple), all seems to work fine, just he fact that there must be only one object instance, hopes this it’s just about a miss understanding from my part, have a nice day, cheers.

    From the inimaginable and beyond, where the mind feels free.

    Attachments:
    You must be logged in to view attached files.
    #1678
    Gavalakis
    Keymaster

    Hey,

    If the skin looks messed up like this, then it means that the code is not fully executed and there should be some sort of errors logged in the console. Can you please confirm that there are some errors indeed logged in the console and if so what those errors are.
    Regarding the SceneManager.sceneLoaded event, please also take a look at my answer on your other post, since I think is is directly relevant to one another.
    Let me know.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.