private void StopBuild() { Destroy(preview); //get rid of the preview preview = null; //not sure if you need this actually previewScript = null; // isBuilding = false; selector.TogglePanel(); //toggle the button panel back on }
private void StopBuild() { Destroy(preview); //get rid of the preview preview = null; //not sure if you need this actually previewScript = null; // selector.TogglePanel(); isBuilding = false; FurnitureSelection.SetActive(false); building?.Invoke(false); if (curfurnGo != null) { Destroy(curfurnGo); } }