mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 03:39:55 +00:00
0de3879998
* Add networksync on wake up * Attempt * Added log to screen * Better debug screen logging * I'm an idiot * Wake up client when waking up server * Set initial sector * Server use OnClientReceiveMessage * Cleanup * Prevent server from waking itself * Pass id values as number * Woops * Best I can do sorry * Revert "Best I can do sorry" This reverts commit f3f0fbdb2edb72365dd948775e377a3debd56411. * Ignore a bunch of sectors earlier * Cleanup * Message type enum * Some comments
30 lines
722 B
C#
30 lines
722 B
C#
using OWML.Common;
|
|
using OWML.ModHelper;
|
|
using UnityEngine;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QSB {
|
|
public class QSB: ModBehaviour {
|
|
public static IModHelper Helper;
|
|
|
|
void Awake () {
|
|
Application.runInBackground = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
Cursor.visible = true;
|
|
}
|
|
|
|
void Update () {
|
|
Cursor.lockState = CursorLockMode.None;
|
|
Cursor.visible = true;
|
|
}
|
|
|
|
void Start () {
|
|
Helper = ModHelper;
|
|
|
|
gameObject.AddComponent<DebugLog>();
|
|
gameObject.AddComponent<QSBNetworkManager>();
|
|
gameObject.AddComponent<NetworkManagerHUD>();
|
|
}
|
|
}
|
|
}
|