示例#1
0
        public void Update()
        {
            if (GSS.Controlls.Confirm())
            {
                switch (activeButton)
                {
                case 0:     //Easy
                case 1:     //Medium
                    GSS.StartTime();
                    GSS.World.LoadWorld();
                    GSS.RenderState = RenderState.World;
                    break;

                default:
                    throw new InvalidManuSelectionException(GSS.RenderState, activeButton);
                }

                GSS.StartTime();
                GSS.RenderState = RenderState.World;
                Dispose(true);
            }
            else if (GSS.Controlls.Up(true))
            {
                activeButton++;
                if (activeButton == Buttons.Length)
                {
                    activeButton = 0;
                }
            }
            else if (GSS.Controlls.Down(true))
            {
                activeButton--;
                if (activeButton == -1)
                {
                    activeButton = Buttons.Length - 1;
                }
            }
        }