Singleton?

Forums 💬 FlowCanvas ⚙️ Support Singleton?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22254
    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.

      #22255
      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 🙂

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