add sdk component to network manager

This commit is contained in:
JohnCorby 2022-02-05 19:43:32 -08:00
parent 1d8525d9b6
commit 7080d11d32
2 changed files with 4 additions and 2 deletions

View File

@ -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<EOSSDKComponent>();

View File

@ -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>();
eosSdkComponent.apiKeys = eosApiKey;
var eosTransport = gameObject.AddComponent<EosTransport>();
// todo eosTransport.SetTransportError = error => _lastTransportError = error;