/// <summary> /// Saves the customization on db. /// </summary> /// <param name="_anturaCustomization">The antura customization. If null save only on db.</param> public void SaveAnturaCustomization(AnturaCustomization _anturaCustomization = null) { if (_anturaCustomization != null) { CurrentAnturaCustomizations = _anturaCustomization; } jsonAnturaCustomizationData = CurrentAnturaCustomizations.GetJsonListOfIds(); Save(); AppManager.I.LogManager.LogInfo(InfoEvent.AnturaCustomization, CurrentAnturaCustomizations.GetJsonListOfIds()); }
public void TrackCustomization(AnturaCustomization customization, float anturaSpacePlayTime) { if (!AnalyticsEnabled) { return; } var parameters = new Dictionary <string, object>(); parameters["customization_json"] = customization.GetJsonListOfIds(); parameters["antura_space_play_time"] = anturaSpacePlayTime; AppManager.I.FacebookManager.LogAppEvent("custom_antura_customization", parameters: parameters); }