Wardrobe Cs
Wardrobe Cs
Collections;
using System.Collections.Generic;
using UnityEngine;
using PlayFab;
using System.Reflection.Emit;
using PlayFab.ClientModels;
using TMPro;
using UnityEngine.SceneManagement;
using Unity.VisualScripting;
if (currentpage == index / 2)
{
Instantiate(cos, secondpos, Quaternion.identity);
}
if (currentpage == index / 3)
{
Instantiate(cos, thirdpos, Quaternion.identity);
}
}
}
public void AccountInfoSuccess(GetAccountInfoResult result)
{
MyPlayFabID = result.AccountInfo.PlayFabId;
PlayFabClientAPI.GetUserInventory(new GetUserInventoryRequest(),
(result) =>
{
foreach (var item in result.Inventory)
{
if (item.CatalogVersion == CosmeticsCatalogName)
{
for (int i = 0; i < CosmeticsPrefab.Count; i++)
{
if (CosmeticsPrefab[i].name == item.ItemId)
{
CosmeticsPrefabHave.Add(CosmeticsPrefab[i]);
}
}
}
}
},
(error) =>
{
Debug.LogError(error.GenerateErrorReport());
});
}
}