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); }
/// <inheritdoc /> public TransitionElement(EditorGraphics editorGraphics, ExitJoint start, EntryJoint destination) : base(editorGraphics, false, start) { Destination = destination; Start = start; renderer = new TransitionRenderer(this, editorGraphics.ColorPalette); }