public RUMEvent(int pid, RUMPlatform platform, bool debug, Action <string, IDictionary <string, object> > writeAction) { this._debug = debug; this._rum_id_storage = "rum_rid_" + pid; this._rum_events_storage = "rum_events_" + pid; this._sizeLimit = RUMConfig.SENT_SIZE_LIMIT; RUMPlatform.Instance.InitPrefs(this._rum_id_storage, this._rum_events_storage, writeAction); }
void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }