public override void Execute(PureMVC.Interfaces.INotification notification) { SendNotification(Notification.PHOTON_STATUS_CHANGED, "connect to server..."); photon = Facade.photonManager; photon.ConnectInUpdate = true; photon.onConnectedToMaster += onConnected; }
public override void Execute(PureMVC.Interfaces.INotification notification) { Facade.RegisterMediator(new PhotonStatusMediator(PhotonStatusMediator.NAME, Facade.viewComponents.lblPhotonStatus)); Facade.RegisterMediator(new UserPanelMediator(UserPanelMediator.NAME, Facade.viewComponents.userPanel)); Facade.RegisterMediator(new MainMenuMediator(MainMenuMediator.NAME, Facade.viewComponents.mainMenu)); Facade.RegisterMediator(new RoomSelectMediator(RoomSelectMediator.NAME, Facade.viewComponents.selectRoomView)); Facade.RegisterMediator(new ArenaMediator(ArenaMediator.NAME, Facade.viewComponents.arena)); Facade.RegisterMediator(new PlayerOptionsMediator(PlayerOptionsMediator.NAME, Facade.viewComponents.playerOptions)); }
public override void Execute(PureMVC.Interfaces.INotification notification) { room = (int)notification.Body; photon = Facade.photonManager; SendNotification(Notification.PHOTON_STATUS_CHANGED, "connect to match..."); photon.onJoinedRoom += OnJoinedRoom; photon.onFullRoom += startMatch; photon.joinRoom(room); }
public override void Execute(PureMVC.Interfaces.INotification notification) { SendNotification(Notification.PHOTON_STATUS_CHANGED, "leave room..."); photon = Facade.photonManager; photon.onLeaveRoom += onLeave; photon.leaveRoom(); photon.ConnectInUpdate = false; // }
/// <summary> /// Execute the specified notification. /// </summary> /// <param name="notification">Notification.</param> public void Execute(PureMVC.Interfaces.INotification notification) { delegates = new Dictionary <string, LoadConfingDelegate>() { /*{"Config/Skill",DBFacade.Instance.LoadSkill},*/ }; CustomerUpdate.Instance.AddUpdate(LoadConfig); enumerator = delegates.GetEnumerator(); GlobalLog.Log("StartCommand Succed"); }
//接收消息到消息之后处理 public override void HandleNotification(PureMVC.Interfaces.INotification notification) { string name = notification.Name; object vo = notification.Body; switch (name) { case NotifyConst.R_LOGIN: (this.ViewComponent as LoginView).receiveMessage(vo); break; } }
public override void Execute(PureMVC.Interfaces.INotification notification) { PlayFabSettings.TitleId = PlayFabId; SendNotification(Notification.PHOTON_STATUS_CHANGED, "load player..."); if (Options.DUMMY_USER) { loadTestUser(); } else { Login(PlayFabId); } }
public override void Execute(PureMVC.Interfaces.INotification notification) { Debug.Log("Execute StartUpCommand"); //RegisterProxy used for registering default proxies Facade.RegisterProxy(new SampleProxy(SampleProxy.NAME)); Facade.RegisterMediator(new SampleMediator(SampleMediator.NAME)); //Facade.RegisterProxy( new Count2Proxy( Count2Proxy.NAME ) ); SampleProxy proxy = Facade.RetrieveProxy(SampleProxy.NAME) as SampleProxy; //SendNotification proxy.CallFunc(); //SampleMediator shoud log info in }
public override void Execute(PureMVC.Interfaces.INotification notification) { Facade.RegisterProxy(new UserProxy(UserProxy.NAME)); Facade.RegisterProxy(new UpgradeProxy(UpgradeProxy.NAME)); }
public virtual void Execute(PureMVC.Interfaces.INotification notification) { }