public void PressArrows(object sender, EventArgs e) { ArrowType arrow = (ArrowType)sender; switch (arrow.direction) { case ArrowDirection.left: if (level > 1) { level--; } break; case ArrowDirection.right: if (level < max) { level++; } break; } text.text = level.ToString(); }
public void add(ArrowType arrow, ArrowDirection direction) { arrows.Add(direction, arrow); }