public void OnEvent(string action, string label, int data, bool otherEvent) { string cat = game.GetCurrentGameObjectChallenge().name + "-" + game.State.ToString(); SaveToDisk(cat, action, label, data, otherEvent); SmartAnalytics.SendEvent(label, data, action, cat); }
public static void Event(string eventLabel, string value, string eventAction, string eventCategory) { string[] ids = new string[] { KEY }; for (int i = 0; i < ids.Length; i++) { SmartAnalytics.SetTrackingID(ids[i]); SmartAnalytics.SendEvent(eventLabel, value, eventAction, eventCategory); } }
public static void Event(string eventAction, float eventValue) { string[] ids = new string[] { KEY }; for (int i = 0; i < ids.Length; i++) { SmartAnalytics.SetTrackingID(ids[i]); SmartAnalytics.SendEvent(eventAction, eventValue); } }
/// <summary> /// Report the event /// </summary> public void Report() { if (!string.IsNullOrEmpty(TrackingID)) { SmartAnalytics.SetTrackingID(TrackingID); } if (!string.IsNullOrEmpty(Category) && !string.IsNullOrEmpty(Label)) { SmartAnalytics.SendEvent(Label, Value, Action, Category); } else if (!string.IsNullOrEmpty(Label)) { SmartAnalytics.SendEvent(Label, Value, Action); } else { SmartAnalytics.SendEvent(Action, Value); } }