public void OnMouseDown() { //if not mousing over a ui element, set the region to worldwide if (!EventSystem.current.IsPointerOverGameObject()) { upgrade_UI.SetSelectedRegion(Region.Worldwide); } }
public void SelectRegion() { upgradeUI.SetSelectedRegion((Region)transform.GetSiblingIndex()); }