public override void OnBeAdded(CYM.IMono mono) { base.OnBeAdded(mono); uint appId = GetAppId(); Config.ForUnity(Application.platform.ToString()); // 使用try防止崩溃 try { new Client(appId); //_client = new Client(appId); } catch (System.Exception e) { CLog.Error("Error starting steam client: {0}", e); Client.Instance.Dispose(); } if (Client.Instance != null && Client.Instance.IsValid) { IsInited = true; } else { if (Client.Instance != null) { Client.Instance.Dispose(); } } }
public override void OnBeAdded(CYM.IMono mono) { fileAppId = ReadFileAppId(); base.OnBeAdded(mono); }