public FBSDKEventBinding(Dictionary <string, object> dict) { eventName = (string)dict[Constants.EventBindingKeysEventName]; if (eventName != null) { this.eventName = eventName; } eventType = (string)dict[Constants.EventBindingKeysEventType]; if (eventType != null) { this.eventType = eventType; } appVersion = (string)dict[Constants.EventBindingKeysAppVersion]; if (appVersion != null) { this.appVersion = appVersion; } eventName = (string)dict[Constants.EventBindingKeysEventName]; if (eventName != null) { this.eventName = eventName; } var _path = (List <System.Object>)dict[Constants.EventBindingKeysPath]; path = new List <FBSDKCodelessPathComponent> (); foreach (Dictionary <string, System.Object> p in _path) { var pathComponent = new FBSDKCodelessPathComponent(p); path.Add(pathComponent); } }
public static List <FBSDKCodelessPathComponent> GetPath(GameObject go, int limit) { if (go == null || limit <= 0) { return(null); } var path = new List <FBSDKCodelessPathComponent> (); var parent = GetParent(go); if (parent != null) { var parentPath = GetPath(parent, limit - 1); path = parentPath; } else { // pAdd the scene first var componentInfo1 = new Dictionary <string, System.Object>(); componentInfo1.Add(Constants.EventBindingKeysClassName, SceneManager.GetActiveScene().name); var pathComponent1 = new FBSDKCodelessPathComponent(componentInfo1); path.Add(pathComponent1); } var componentInfo = GetAttribute(go, parent); var pathComponent = new FBSDKCodelessPathComponent(componentInfo); path.Add(pathComponent); return(path); }