private void LogEvent(string event_name, ServerEventParameter[] param = null) { ServerEvent e = new ServerEvent(user_id, CurrentTimestamp(), game_name, event_name, param); Debug.Log("logging event: " + event_name); event_manager.LogEvent(e); }
// fill event data with general information to be shared between all events logged from current session. private void LogEvent(string eventName, ServerEventParameter[] parameters = null) { ServerEvent gameEvent = new ServerEvent(userId, CurrentTimestamp(), gameName, eventName, parameters); eventManager.LogEvent(gameEvent); }