private void Start() { //Night UI this.ObserveEveryValueChanged(x => x.nightSession.GetActualDifficulty()) .Subscribe(x => { difficulty.text = nightSession.GetActualDifficulty().ToString(); }); this.ObserveEveryValueChanged(x => x.nightSession.GetEnemiesAlive()) .Subscribe(x => { enemiesAlive.text = "Enemies Alive: " + nightSession.GetEnemiesAlive().ToString(); }); //Player UI AmmoCD.maxValue = playerSession.GetTimeToReload(); this.ObserveEveryValueChanged(x => x.playerSession.GetAmmo()) .Subscribe(x => { ammo.text = playerSession.GetAmmo().ToString(); }); this.ObserveEveryValueChanged(x => x.playerSession.GetActualTimeToReload()) .Subscribe(x => { AmmoCD.value = playerSession.GetActualTimeToReload(); }); }