예제 #1
0
 public void Initialize()
 {
     _gained     = false;
     _observable = new NotifyingObservable();
     _observable.OnGainComputed += () => { _gained = true; };
     _observable.OnLoseComputed += () => { _lost = true; };
     _computed       = new Computed(() => { _observable.OnGet(); });
     _secondComputed = new Computed(() => { _observable.OnGet(); });
 }
예제 #2
0
 public void Initialize()
 {
     _gained = false;
     _observable = new NotifyingObservable();
     _observable.OnGainComputed += () => { _gained = true; };
     _observable.OnLoseComputed += () => { _lost = true; };
     _computed = new Computed(() => { _observable.OnGet(); });
     _secondComputed = new Computed(() => { _observable.OnGet(); });
 }