Exemplo n.º 1
0
 public static void CharacterSelectDataRefresh()
 {
     //Debug.Log("Ran CharacterSelectDataRefresh");
     PF_GameData.GetTitleData();
     PF_GameData.GetTitleNews();
     PF_GameData.GetCatalogInfo();
     PF_GameData.GetOffersCatalog();
     PF_PlayerData.GetPlayerCharacters();
     PF_PlayerData.GetUserStatistics();
 }
Exemplo n.º 2
0
    public static void CharacterSelectDataRefresh()
    {
        //Debug.Log("Ran CharacterSelectDataRefresh");
        PF_GameData.GetEventData();
//        PF_GameData.GetActiveEventData(); // now called directly from GetEventData to ensure ordering
        PF_GameData.GetTitleData();
        PF_GameData.GetTitleNews();
        PF_GameData.GetCatalogInfo();
        PF_GameData.GetOffersCatalog();
        PF_PlayerData.GetPlayerCharacters();
        PF_PlayerData.GetUserStatistics();
    }
Exemplo n.º 3
0
    void HandleCharacterRequest(Action <string> callback = null, CharacterFilters filter = CharacterFilters.AllCharacter)
    {
        Action afterGetCharacter = () =>
        {
            // ENABLE THIS AFTER WE HAVE A CONSISTENT WAY TO HIDE TINTS
            //ShowTint();

            Action afterGetData = () =>
            {
                this.floatingChaPrompt.Init(callback, filter);
            };

            PF_PlayerData.GetCharacterData(afterGetData);
        };

        PF_PlayerData.GetPlayerCharacters(afterGetCharacter);
    }
Exemplo n.º 4
0
    public static void CharacterSelectDataRefresh()
    {
        //Debug.Log("Ran CharacterSelectDataRefresh");
        PF_PlayerData.GetUserAccountInfo();
        PF_GameData.GetTitleData();
        //PF_GameData.GetTitleNews();
        PF_GameData.GetCatalogInfo();
        //PF_GameData.GetOffersCatalog();

        System.Action action = () =>
        {
            PF_PlayerData.GetCharacterData();
        };

        PF_PlayerData.GetPlayerCharacters(action);
        //PF_PlayerData.GetCharacterData();
        //PF_PlayerData.GetUserStatistics();
    }
Exemplo n.º 5
0
    private void HandleCallbackSuccess(string details, PlayFabAPIMethods method, MessageDisplayStyle displayStyle)
    {
        switch (method)
        {
        case PlayFabAPIMethods.GetTitleData:
            break;

        case PlayFabAPIMethods.GetAccountInfo:
            isAccountInfoLoaded = true;
            break;

        case PlayFabAPIMethods.GetCharacterReadOnlyData:
            isCharacterDataLoaded = true;
            SetSavedTeamData();

            break;

        case PlayFabAPIMethods.UpdateUserData:
            isUserDataUpdated = true;
            SetSavedTeamData();
            teamUiController.Init();

            break;

        case PlayFabAPIMethods.GrantCharacterToUser:

            PF_PlayerData.GetPlayerCharacters(() =>
            {
                PF_PlayerData.GetCharacterData(() =>
                {
                    CheckIsNewPlayer();
                });
            });
            break;
        }

        CheckToContinue();
    }