public void DeleteView_Delete() { if (Debug.isDebugBuild) { Debug.Log("Delete | DELETE pressed"); } googleAnalytics.LogEvent("UI Interaction", "Button Press", "Delete Delete", 1); sprayCam.DeleteSpray(sprayCam.CurrentSpray); if (InPreview) { sprayCam.RestoreWipTexture(); // we deleted the spray we were previewing so we need to pop-off preview and end up back in library BackUntilPopped(viewView); } else { Back(); } }
public void DeleteElement(LibraryListElement element) { sprayCam.DeleteSpray(element.spray); }