void Update() { if (Input.GetMouseButtonDown(0)) { var p = new Dictionary <string, object>() { { "SCORE", 22 }, { "PARAM2", "abc" }, { "PARAM3", true } }; Zapic.SubmitEvent(p); } }
private void SendEvent() { var eventParams = new Dictionary <string, object>(); //Add parameter information to the event eventParams.Add("Score", 22); eventParams.Add("PARAM2", "abc"); eventParams.Add("PARAM3", true); eventParams.Add("PARAM4", "\"blab"); eventParams.Add("PAR\"AM5", "\"blab"); //Sumbit the event to the Zapic server Zapic.SubmitEvent(eventParams); }