public BoundsManager() { _camera = SceneContext.Instance.Camera; _difficultSettings = SceneContext.Instance.DifficultSettings; _timeManager = SceneContext.Instance.TimeManager; _timeManager.RoundCountdown += RecalculateBounds; RecalculateBounds(); }
public ScoreManager() { _difficultSettings = SceneContext.Instance.DifficultSettings; _scoreSettings = SceneContext.Instance.ScoreSettings; _timeManager = SceneContext.Instance.TimeManager; _bubblesManager = SceneContext.Instance.BubblesManager; _bubblesManager.BubbleHit += OnBubbleHit; _timeManager.RoundStarted += OnTimeStarted; }
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; }