using UnityEngine; using UnityEngine.Networking; namespace QSB { public class QSBNetworkManager : NetworkManager { private void Awake() { var assetBundle = QSB.Helper.Assets.LoadBundle("assets/network"); playerPrefab = assetBundle.LoadAsset("assets/networkplayer.prefab"); playerPrefab.AddComponent(); } public override void OnStartServer() { WakeUpSync.IsServer = true; } public override void OnClientConnect(NetworkConnection conn) { base.OnClientConnect(conn); DebugLog.Screen("OnClientConnect"); gameObject.AddComponent(); gameObject.AddComponent(); } } }