mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
a1177515b3
* Create QSBBehaviour * Preserve timescale * Cleanup
37 lines
831 B
C#
37 lines
831 B
C#
using OWML.Common;
|
|
using OWML.ModHelper;
|
|
using UnityEngine;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QSB
|
|
{
|
|
public class QSB : ModBehaviour
|
|
{
|
|
public static IModHelper Helper;
|
|
|
|
private void Awake()
|
|
{
|
|
Application.runInBackground = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
Cursor.visible = true;
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
Cursor.lockState = CursorLockMode.None;
|
|
Cursor.visible = true;
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
Helper = ModHelper;
|
|
|
|
gameObject.AddComponent<DebugLog>();
|
|
gameObject.AddComponent<QSBNetworkManager>();
|
|
gameObject.AddComponent<NetworkManagerHUD>();
|
|
gameObject.AddComponent<PreserveTimeScale>();
|
|
}
|
|
|
|
}
|
|
}
|