Ejemplo n.º 1
0
    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();
        }
    }
Ejemplo n.º 2
0
 public void DeleteElement(LibraryListElement element)
 {
     sprayCam.DeleteSpray(element.spray);
 }