コード例 #1
0
        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();
        }
コード例 #2
0
 public void add(ArrowType arrow, ArrowDirection direction)
 {
     arrows.Add(direction, arrow);
 }