Exemple #1
0
        void Start()
        {
            playerProvider = GetComponent <PlayerProvider>();
            timeManager    = GetComponent <GameTimeManager>();
            scoreManager   = GetComponent <ScoreManager>();
            resultManager  = GetComponent <ResultManager>();

            CurrentState.Subscribe(state =>
            {
                state.Red();
                OnStateChanged(state);
            });
        }
Exemple #2
0
 void Start()
 {
     _scoreManager   = GetComponent <ScoreManager>();
     _playerProvider = GetComponent <PlayerProvider>();
 }