public void OnButton_Exit() { //EventSystem.current.SetSelectedGameObject(null); AudioManager.GetInstance.PlaySound("BuildSlotClicked"); SetUIActive(false); UIPointerInHudManager.SetPointerInHud(false); }
public void OnButton_Destroy() { EventSystem.current.SetSelectedGameObject(null); PlayDestroySound(); SetUIActive(false); BuildManager.OnBuildingDestroyed(CurrentSelectedBuilding); CurrentSelectedBuilding.DestroyEffect(); Destroy(CurrentSelectedBuilding.gameObject); UIPointerInHudManager.SetPointerInHud(false); }