コード例 #1
0
 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;
 }
コード例 #2
0
 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));
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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;
     //
 }
コード例 #5
0
        /// <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");
        }
コード例 #6
0
    //接收消息到消息之后处理
    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;
        }
    }
コード例 #7
0
    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);
        }
    }
コード例 #8
0
    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
    }
コード例 #9
0
 public override void Execute(PureMVC.Interfaces.INotification notification)
 {
     Facade.RegisterProxy(new UserProxy(UserProxy.NAME));
     Facade.RegisterProxy(new UpgradeProxy(UpgradeProxy.NAME));
 }
コード例 #10
0
 public virtual void Execute(PureMVC.Interfaces.INotification notification)
 {
 }