PlumberUltimateAds/Assets/Scripts/Dev/PlayFab/PlayFabManager.cs

29 lines
703 B
C#

using System.Collections;
using System.Collections.Generic;
using PlayFab.ClientModels;
using UnityEngine;
public class PlayFabManager : MonoBehaviour
{
public static PlayFabManager Instance { get; private set; }
public PlayFabInit playFabInit;
public PlayFabLeaderboards playFabLeaderboards;
public PlayerProfileModel myProfile;
private void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(this);
}
else
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
playFabInit = gameObject.AddComponent<PlayFabInit>();
playFabLeaderboards = gameObject.AddComponent<PlayFabLeaderboards>();
}
}