Beispiel #1
0
 private void Construct(ISpawnFinishedObservable spawnFinishedObservable,
                        ILiveObservable livesObservable,
                        IUnitsCountObservable unitsCountObservable)
 {
     m_spawnFinishedObservable = spawnFinishedObservable;
     m_livesObservable         = livesObservable;
     m_enemiesCountObservable  = unitsCountObservable;
 }
Beispiel #2
0
 private void Construct(ILiveObservable livesObservable)
 {
     livesObservable.Lives.Subscribe(OnLivesChanged).AddTo(this);
     m_maxLives = livesObservable.Lives.Value;
     OnLivesChanged(m_maxLives);
 }