Beispiel #1
0
        public void MenuMouseDown(WSMenuOption option)
        {
            if (!inputEnabled)
            {
                return;
            }

            clickedOnThisMenuOption = option;

            option.FullBackground();
        }
Beispiel #2
0
        public void MenuMouseExit(WSMenuOption option)
        {
            option.FullBackground();

            wsController.MenuOptionEndHover();

            if (!inputEnabled)
            {
                return;
            }

            if (Input.GetMouseButton(0) && option == clickedOnThisMenuOption)
            {
                //if (GameObject.Find("WSOptionGhost(Clone)") == null) { // If there are currently no other optionghosts
                option.CreateOptionGhost();
                //}
            }
            clickedOnThisMenuOption = null;
        }