diff --git a/EpicOnlineTransport/EOSSDKComponent.cs b/EpicOnlineTransport/EOSSDKComponent.cs index edf8ce61..54525a5d 100644 --- a/EpicOnlineTransport/EOSSDKComponent.cs +++ b/EpicOnlineTransport/EOSSDKComponent.cs @@ -132,7 +132,7 @@ namespace EpicTransport { } protected static EOSSDKComponent instance; - public static EOSSDKComponent Instance { + protected static EOSSDKComponent Instance { get { if (instance == null) { return new GameObject("EOSSDKComponent").AddComponent(); diff --git a/QSB/QSBNetworkManager.cs b/QSB/QSBNetworkManager.cs index 663865ae..fbc8a92c 100644 --- a/QSB/QSBNetworkManager.cs +++ b/QSB/QSBNetworkManager.cs @@ -73,7 +73,9 @@ namespace QSB eosApiKey.epicDeploymentId = "1f164829371e4cdcb23efedce98d99ad"; eosApiKey.epicClientId = "xyza7891TmlpkaiDv6KAnJH0f07aAbTu"; eosApiKey.epicClientSecret = "ft17miukylHF877istFuhTgq+Kw1le3Pfigvf9Dtu20"; - EOSSDKComponent.Instance.apiKeys = eosApiKey; + + var eosSdkComponent = gameObject.AddComponent(); + eosSdkComponent.apiKeys = eosApiKey; var eosTransport = gameObject.AddComponent(); // todo eosTransport.SetTransportError = error => _lastTransportError = error;