bool BuildBlackHole(GameObject currentSelectObject) { Clickable clickable = currentSelectObject.GetComponent <Clickable>(); if (clickable.CanBuildBlackHole()) { GameObject go = clickable.BuildBlackHole(); currentButton.GetComponent <UIButton>().SetReload(GameplayConstants.BlackHoleButtonReloadTime); //library.buildings.AddSafeCupol(go.GetComponent<SafeCupol>()); // currentButton.GetComponent<UIButton>().SetReload(GameplayConstants.WallButtonReloadTime); return(true); } else { return(false); } }