public void MenuMouseUpAsButton(WSMenuOption option) { if (!inputEnabled) { return; } option.FaintBackground(); wsController.MenuOptionClicked(option.optionType, option.unit, option.weapon); }
public void MenuMouseDown(WSMenuOption option) { if (!inputEnabled) { return; } clickedOnThisMenuOption = option; option.FullBackground(); }
public void MenuMouseEnter(WSMenuOption option) { if (!inputEnabled) { return; } option.FaintBackground(); wsController.MenuOptionHover(option.optionType, option.unit, option.weapon); }
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; }