private void Awake() { _updateManager = new UpdateManager(); _timeManager = new TimeManager(); _boundsManager = new BoundsManager(); _bubblesManager = new BubblesManager(); _scoreManager = new ScoreManager(); }
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; }