Exemple #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Editor"))
     {
         AIGraph.OpenDialogueGraphWindow(target as ActorAI);
     }
 }
Exemple #2
0
    public static bool OpenEditor(int instanceId, int line)
    {
        ActorAI obj = EditorUtility.InstanceIDToObject(instanceId) as ActorAI;

        if (obj != null)
        {
            AIGraph.OpenDialogueGraphWindow(obj);
            return(true);
        }
        return(false);
    }