37 lines
831 B
C#
Raw Normal View History

2020-02-10 23:03:28 +01:00
using OWML.Common;
using OWML.ModHelper;
using UnityEngine;
using UnityEngine.Networking;
2020-02-15 20:48:02 +01:00
namespace QSB
{
public class QSB : ModBehaviour
{
public static IModHelper Helper;
2020-02-10 23:03:28 +01:00
2020-02-15 20:48:02 +01:00
private void Awake()
{
2020-02-10 23:03:28 +01:00
Application.runInBackground = true;
Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;
}
2020-02-15 20:48:02 +01:00
private void Update()
{
2020-02-10 23:03:28 +01:00
Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;
}
2020-02-15 20:48:02 +01:00
private void Start()
{
Helper = ModHelper;
2020-02-10 23:03:28 +01:00
gameObject.AddComponent<DebugLog>();
gameObject.AddComponent<QSBNetworkManager>();
2020-02-13 20:23:26 +01:00
gameObject.AddComponent<NetworkManagerHUD>();
gameObject.AddComponent<PreserveTimeScale>();
2020-02-10 23:03:28 +01:00
}
2020-02-15 20:48:02 +01:00
2020-02-10 23:03:28 +01:00
}
}