コード例 #1
0
 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()));
     }
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 public string GetMethodString()
 {
     return(_targetMethod != null?_targetMethod.GetMethodString() : null);
 }