bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/SocialGameManager.cs
2024-02-24 22:40:44 -05:00

63 lines
996 B
C#

using System;
using UnityEngine;
public class SocialGameManager : MonoBehaviour
{
private static SocialGameManager instance;
public static SocialGameManager Instance
{
get
{
return instance;
}
}
public virtual void Authenticate()
{
}
public virtual void ShowAchievementsView()
{
}
public virtual void ShowLeaderboardsView()
{
}
public virtual void LoadAchievements()
{
}
public virtual void LoadLeaderboardScores()
{
}
public virtual void ReportAchievementProgress(string achievementId, double progress)
{
}
public virtual void ReportLeaderboardScore(string leaderboardId, long score, Action<bool> handler)
{
}
public virtual void SyncAllAchievementsNow()
{
}
public virtual void ResetAchievementData()
{
}
public static bool IsInstantiated()
{
return instance;
}
private void Awake()
{
Assert.Check(instance == null, "Singleton " + base.name + " spawned twice");
instance = this;
UnityEngine.Object.DontDestroyOnLoad(this);
}
}