You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
635 B
C#
27 lines
635 B
C#
4 months ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class PlayFabManager : MonoBehaviour
|
||
|
{
|
||
|
public static PlayFabManager Instance { get; private set; }
|
||
|
public PlayFabInit playFabInit;
|
||
|
public PlayFabLeaderboards playFabLeaderboards;
|
||
|
private void Awake()
|
||
|
{
|
||
|
if (Instance != null && Instance != this)
|
||
|
{
|
||
|
Destroy(this);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
Instance = this;
|
||
|
DontDestroyOnLoad(gameObject);
|
||
|
}
|
||
|
|
||
|
playFabInit = gameObject.AddComponent<PlayFabInit>();
|
||
|
playFabLeaderboards = gameObject.AddComponent<PlayFabLeaderboards>();
|
||
|
}
|
||
|
|
||
|
}
|