public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     hype            = HYP.Instance();
     networkObserver = new NetworkObserver(this);
     stateObserver   = new StateObserver(this);
     messageObserver = new MessageObserver(this);
     FoundInstances  = new Dictionary <string, HYPInstance>();
     FoundLounges    = new Dictionary <string, Lounge>();
     RequestHypeToStart();
 }
Esempio n. 2
0
 protected StateMachineBase(StateObserver <TI> observer)
 {
     _stateObserver = this.ConnectStateObserver(observer);
 }
 public static IDisposable ConnectStateObserver <T>(this StateMachine <T> machine, StateObserver <T> observer)
     where T : class
 {
     return(machine.ConnectStateObserver(observer));
 }