Singleton?

FlowCanvas Forums Support Singleton?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1327
    westray
    Participant

    I want to make a scoremanager script to handle the scoring in my game. How can I set this up as a singleton,like in C#,if this is even possible in flowScript.

    #1329
    Gavalakis
    Keymaster

    Hello,
    Sorry for late reply due to Eastern vacation.
    Basically, what the singleton pattern mostly does, is that is prevents more than one instance of an object/class being in existence at the same time.
    Unfortunately this can’t be replicated with flowscripts, since they are not classes 🙂

    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.