Exemplo n.º 1
0
        public override Node Create(Vector2 pos)
        {
            DialogueNode node = CreateInstance <DialogueNode>();
            var          max  = Mathf.Max(inOptions, extOptions);

            node.rect = new Rect(pos.x, pos.y, 300, 200 + 50 * max);
            node.name = "Dialogue Node";

            node.CreateInput("Parent", "Void");
            node.CreateOutput("Child", "Void");
            return(node);
        }