LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/SteamManager.cs

30 lines
394 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
using Steamworks;
using UnityEngine;
public class SteamManager : MonoBehaviour
{
public static SteamManager Instance { get; private set; }
private void Awake()
{
if (Instance == null)
{
Instance = this;
}
else
{
Object.Destroy(base.gameObject);
}
}
private void OnDisable()
{
SteamClient.Shutdown();
}
private void Update()
{
SteamClient.RunCallbacks();
}
}