Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Is it safe to always access Game Managers using Singleton?

$
0
0
Hello, I'm a beginner and trying to create a game where a lot of objects need to interact with game managers.
There are different types of objects and also different types of managers.
Some usages:
  1. objects movement speed, which is same in all objects and defined in a manager.
  2. different types of listener, like click listener, in objects that need to be called in a manager.
  3. some managers need to access other managers. like level manager needs access to score manager.
...

Is it safe to always access Game Managers using Singleton?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>