/// <summary> /// Add listender presuming that the method is of compatible data type. /// If the inlet is a property, MethodInfo should be the set method. /// </summary> public bool Map(object targetObject, MethodInfo methodInfo) { Type targetParameterType; GetTargetParameterType(methodInfo, out targetParameterType); OscMappingEntry entry = new OscMappingEntry(targetObject, methodInfo.Name, targetParameterType != null ? targetParameterType.AssemblyQualifiedName : string.Empty); _entries.Add(entry); if (targetObject is Component) { entry.targetGameObject = (targetObject as Component).gameObject; } _isDirty = true; return(true); }
public void AddEmptyEntry() { OscMappingEntry entry = new OscMappingEntry(null, string.Empty, string.Empty); _entries.Add(entry); }