/// <summary> /// Checks if the tower is placeable and changes the material accordingly. /// </summary> public void IsPlaceable() { if (!_placeable) { _placeable = true; _omc.ChangeMaterial(_placeableMaterial); } }
/// <summary> /// Will be called when the object is selected, it changes the material of the object to the selected one. /// </summary> public void IsSelected() { _omc.ChangeMaterial(selectedMaterial); }