Esempio n. 1
0
        public BoundsManager()
        {
            _camera                      = SceneContext.Instance.Camera;
            _difficultSettings           = SceneContext.Instance.DifficultSettings;
            _timeManager                 = SceneContext.Instance.TimeManager;
            _timeManager.RoundCountdown += RecalculateBounds;

            RecalculateBounds();
        }
Esempio n. 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;
        }
Esempio n. 3
0
 public BubblesManager()
 {
     _speedFactor             = 1f;
     _bubblesPool             = new ObjectPool <BubbleController>();
     _difficultSettings       = SceneContext.Instance.DifficultSettings;
     _timeManager             = SceneContext.Instance.TimeManager;
     _timeManager.RoundEnded += OnTimeEnded;
     _updateManager           = SceneContext.Instance.UpdateManager;
     _updateManager.Add(this);
     _boundsManager = SceneContext.Instance.BoundsManager;
 }