bool BuildFountain(GameObject currentSelectObject) { Clickable clickable = currentSelectObject.GetComponent <Clickable>(); if (clickable.CanBuildFountain()) { GameObject go = clickable.BuildFountain(); LandWasChanged(); currentButton.GetComponent <UIButton>().SetReload(GetReloadFountainTime()); //library.buildings.AddFoutain(go.GetComponent<Fountain>()); //currentButton.GetComponent<UIButton>().SetReload(GetReloadFountainTime()); return(true); } else { return(false); } }