示例#1
0
        public ExitJoint AddExitJoint()
        {
            ExitJoint toAdd = new ExitJoint(Graphics, this);

            toAdd.RelativePosition = new Vector2(size.x / 2f, ExitJoints.Count * 20f);
            size.y += 20f;
            ExitJoints.Add(toAdd);

            CreateTransitionButton.RelativePosition = new Vector2(size.x / 2f, (ExitJoints.Count) * 20f);

            return(toAdd);
        }
示例#2
0
 /// <inheritdoc />
 public TransitionElement(EditorGraphics editorGraphics, ExitJoint start, EntryJoint destination) : base(editorGraphics, false, start)
 {
     Destination = destination;
     Start       = start;
     renderer    = new TransitionRenderer(this, editorGraphics.ColorPalette);
 }