private void OnSelectedBuildingApproveClick() { if (!SelectedPlaceableObject.HasBlocked) { SelectedPlaceableObject.SetParent(PlaceablesObjectTransform); SelectedPlaceableObject.HasPlaced = true; AddBaseObject(SelectedPlaceableObject); Shared.EventSystem.BuildApprovedTrigger.OnTriggerEvent -= OnSelectedBuildingApproveClick; Shared.EventSystem.BuildCanceledTrigger.OnTriggerEvent -= OnSelectedBuildingCancelClick; Shared.EventSystem.BuildSucceedValue.Set(true); } else { Shared.EventSystem.BuildSucceedValue.Set(false); Debug.LogWarning("Engel var yerleştirilemedi"); } }