public bool CanPublish() { if (!sceneToEdit.metricsController.IsInsideTheLimits()) { return(false); } if (!builderInWorldEntityHandler.AreAllEntitiesInsideBoundaries()) { return(false); } return(true); }
void CheckPublishConditions() { bool canPublishScene = true; if (!sceneToEdit.metricsController.IsInsideTheLimits()) { HUDController.i.builderInWorldMainHud.SetPublishBtnAvailability(false); return; } if (!builderInWorldEntityHandler.AreAllEntitiesInsideBoundaries()) { HUDController.i.builderInWorldMainHud.SetPublishBtnAvailability(false); return; } HUDController.i.builderInWorldMainHud.SetPublishBtnAvailability(canPublishScene); }