Beispiel #1
0
 private void Awake()
 {
     _updateManager  = new UpdateManager();
     _timeManager    = new TimeManager();
     _boundsManager  = new BoundsManager();
     _bubblesManager = new BubblesManager();
     _scoreManager   = new ScoreManager();
 }
Beispiel #2
0
        public ScoreManager()
        {
            _difficultSettings = SceneContext.Instance.DifficultSettings;
            _scoreSettings     = SceneContext.Instance.ScoreSettings;
            _timeManager       = SceneContext.Instance.TimeManager;
            _bubblesManager    = SceneContext.Instance.BubblesManager;

            _bubblesManager.BubbleHit += OnBubbleHit;
            _timeManager.RoundStarted += OnTimeStarted;
        }