Skip to main content
2 of 2
Don't repeat tags in title
DMGregory
  • 136.3k
  • 22
  • 247
  • 373

Reduce coupling between various singletons

I'm working on a game that makes use of several singletons such as a game manager, audio manager, and a level loader. The game manager I created has references to the audio manager, level loader, and the player, so there's a high degree of coupling that I'm not sure is optimal:

private Player currentPlayer;
private CinemachineVirtualCamera CVC;
private AudioManagerScript AM;
private LevelLoader LL;

Is there a better way to write this to reduce coupling or is this kind of unavoidable?

Mav
  • 99
  • 13