public override void OnValidate(ITaskSystem ownerSystem) { if (method != null && method.HasChanged()) { SetMethod(method.Get()); } if (method != null && method.Get() == null) { Error(string.Format("Missing Method '{0}'", method.GetMethodString())); } }
protected override void OnNodeInspectorGUI() { if (method != null && method.ReturnType != typeof(void) && !method.Name.StartsWith("get_")) { callable = UnityEditor.EditorGUILayout.Toggle("Callable", callable); } if (method == null && _method != null) { GUILayout.Label(_method.GetMethodString()); } base.OnNodeInspectorGUI(); }
public string GetMethodString() { return(_targetMethod != null?_targetMethod.GetMethodString() : null); }