public virtual void OnRuntimeConnectedInvoke(bool x) { if (GameSparksManager.Instance().IsDebug) { var subs = OnRuntimeConnected?.GetInvocationList(); var debugStr = "OnRuntimeConnected InvokationList: "; subs?.ToList().ForEach(m => debugStr += "\n" + m.Method.Name); Debug.Log(debugStr); } OnRuntimeConnected?.Invoke(x); }
/// <summary> /// Notifies the runtime is connected. /// </summary> protected void NotifyRuntimeConnected() { Task.Run(() => { try { OnRuntimeConnected?.Invoke(); } catch (Exception e) { Logger.GetInstance(typeof(OpenVRManager)).Error(e.ToString()); } }); }