void Start() { app = FindObjectOfType <App>(); gc = FindObjectOfType <GlobalControl>(); currentLvl = gc.GetSelectedLevel(); app.playerFactory.playerModel.lives .ObserveEveryValueChanged(l => l.Value) .Subscribe(l => { if (l <= 0) { PlayerDie(); } }).AddTo(this); LevelGenerate(currentLvl); }