Пример #1
0
        private void InviteFriendsToEntourage()
        {
            JSDispatcher jsd            = new JSDispatcher();
            string       inviteCampaign = "invite_entourage_gui";

            jsd.RequestFriendInviter(inviteCampaign,
                                     delegate(string s)
            {
                EventLogger.Log(LogGlobals.CATEGORY_FACEBOOK, LogGlobals.FACEBOOK_INVITE, inviteCampaign, s);
                UnityEngine.Debug.Log("Invite to entourage result = " + s);
            });
        }
Пример #2
0
        private void SetupSlashCommands()
        {
            mJSDispatcher = new JSDispatcher();

            mSlashCommands.Add("/jsc", delegate()
            {
                mJSDispatcher.ToggleJSConsole();
            });

            // Only do this in dev
            ConnectionProxy connectionProxy = GameFacade.Instance.RetrieveProxy <ConnectionProxy>();

            if (connectionProxy.StageName != "DEV")
            {
                return;
            }

            mSlashCommands.Add("/newRoom", delegate()
            {
                GameFacade.Instance.SendNotification(GameFacade.ENTER_ROOM_CREATOR);
            });

            mSlashCommands.Add("/fashionGame", delegate()
            {
                GameFacade.Instance.SendNotification(GameFacade.ENTER_FASHION_MINIGAME);
            });
            mSlashCommands.Add("/roomAPI", delegate()
            {
                GameFacade.Instance.SendNotification(GameFacade.SHOW_SERVER_ROOM_API);
            });

            mSlashCommands.Add("/roomPicker", delegate()
            {
                GameFacade.Instance.SendNotification(GameFacade.SHOW_ROOM_PICKER_GUI, MessageSubType.ClientOwnedRooms);
            });

            mSlashCommands.Add("/openInventory", delegate()
            {
                GameFacade.Instance.RetrieveProxy <InventoryProxy>().OpenPlayerInventory();
            });
            mSlashCommands.Add("/openShop", delegate()
            {
                GameFacade.Instance.SendNotification(GameFacade.SHOP_BUTTON_CLICKED);
            });

            mSlashCommands.Add("/showFriends", delegate()
            {
                GameFacade.Instance.SendNotification(GameFacade.SHOW_FRIENDS);
            });
        }
Пример #3
0
        private void InviteFriendsToEntourage()
        {
            JSDispatcher jsd            = new JSDispatcher();
            string       inviteCampaign = "invite_entourage_fc_level_gui";

            jsd.RequestFriendInviter
            (
                inviteCampaign,
                delegate(string jsResponse)
            {
                EventLogger.Log(LogGlobals.CATEGORY_FACEBOOK, LogGlobals.FACEBOOK_INVITE, inviteCampaign, jsResponse);
                Console.Log("Invite to entourage result = " + jsResponse);
            }
            );
        }