예제 #1
0
 //Hovereffect
 public void OnMouseOver()
 {
     if (control.mouseSelection)
     {
         if (thisState.Equals(ZoomState.start))
         {
             //Start Mouseovereffekt
             Highlight();
         }
     }
 }
예제 #2
0
	public override void UpKey ()
	{
		switch (thisState) {
		case ZoomState.start:
			ZoomIn();
			break;
		case ZoomState.totemZoomedIn:
			thisButton--;
			switch (thisButton) {
			case (MenuButton.underflow):
			case(MenuButton.none):
				thisButton = MenuButton.quit;
				zoomTotem.SetTrigger ("totemScroll");
				thisState = ZoomState.scrolledDown;
				break;
			case(MenuButton.startGame):
				break;
			case(MenuButton.resumeGame):
				break;	
			case(MenuButton.options):
				break;
			case(MenuButton.quit):
				break;
			}
			break;
		case ZoomState.scrolledDown:
			thisButton--;
			switch (thisButton) {
			case(MenuButton.none):
				break;
			case(MenuButton.startGame):
				zoomTotem.SetTrigger ("totemScroll");
				thisState = ZoomState.totemZoomedIn;
				break;
			case(MenuButton.resumeGame):
				
				zoomTotem.SetTrigger ("totemScroll");
				if (thisState.Equals (ZoomState.totemZoomedIn))
					thisState = ZoomState.scrolledDown;
				else if (thisState.Equals (ZoomState.scrolledDown))
					thisState = ZoomState.totemZoomedIn;
				break;	
			case(MenuButton.options):
				
				break;
			case(MenuButton.quit):
				
				break;
			}
			break;
		}
	}
예제 #3
0
    public override void UpKey()
    {
        switch (thisState)
        {
        case ZoomState.start:
            ZoomIn();
            break;

        case ZoomState.totemZoomedIn:
            thisButton--;
            switch (thisButton)
            {
            case (MenuButton.underflow):
            case (MenuButton.none):
                thisButton = MenuButton.quit;
                zoomTotem.SetTrigger("totemScroll");
                thisState = ZoomState.scrolledDown;
                break;

            case (MenuButton.startGame):
                break;

            case (MenuButton.resumeGame):
                break;

            case (MenuButton.options):
                break;

            case (MenuButton.quit):
                break;
            }
            break;

        case ZoomState.scrolledDown:
            thisButton--;
            switch (thisButton)
            {
            case (MenuButton.none):
                break;

            case (MenuButton.startGame):
                zoomTotem.SetTrigger("totemScroll");
                thisState = ZoomState.totemZoomedIn;
                break;

            case (MenuButton.resumeGame):

                zoomTotem.SetTrigger("totemScroll");
                if (thisState.Equals(ZoomState.totemZoomedIn))
                {
                    thisState = ZoomState.scrolledDown;
                }
                else if (thisState.Equals(ZoomState.scrolledDown))
                {
                    thisState = ZoomState.totemZoomedIn;
                }
                break;

            case (MenuButton.options):

                break;

            case (MenuButton.quit):

                break;
            }
            break;
        }
    }