Esempio n. 1
0
 public override void OnRegister()
 {
     base.OnRegister();
     gameProxy = Facade.RetrieveProxy(GameProxy.NAME) as GameProxy;
     if (null == gameProxy)
     {
         throw new Exception("[ImpulseInputMediator][OnRegister] " + GameProxy.NAME + "is null!");
     }
 }
 public override void OnRegister()
 {
     base.OnRegister();
     leaderBoardProxy = Facade.RetrieveProxy(LeaderBoardProxy.NAME) as LeaderBoardProxy;
     if (null == leaderBoardProxy)
     {
         throw new Exception("[HighScorePopupMediator][OnRegister] " + LeaderBoardProxy.NAME + "is null!");
     }
     gameProxy = Facade.RetrieveProxy(GameProxy.NAME) as GameProxy;
     if (null == gameProxy)
     {
         throw new Exception("[HighScorePopupMediator][OnRegister] " + GameProxy.NAME + "is null!");
     }
 }