void Update() { if (tower == null) { if (thisObj.activeInHierarchy) { thisObj.SetActive(false); } return; } slider.value = tower.GetConstructionStatus(); UpdateScreenPosition(); if (!tower.InConstruction()) { tower = null; thisObj.SetActive(false); } }