示例#1
0
    void LoadSprays()
    {
        PhotoIO.LoadFilePaths();

        for (int i = 0; i < PhotoIO.saveMap.Count; i++)
        {
            var s = new SavedSpray(PhotoIO.saveMap[i], i);
            sprays.Add(s);
        }

        PhotoIO.LoadThumbnailImage();
    }
示例#2
0
    public ISpray SaveWorkInProgress()
    {
        Debug.Log("Saving WIP");



        int id    = cameraCapture.Save();      // automatically clears the current render texture
        var spray = new SavedSpray(id, PhotoIO.saveMap.Count - 1);

        sprays.Add(spray);
        // so we can access it after saving
        currentSpray = spray;

        googleAnalytics.LogEvent("Spray", "Save Work In Progress", spray.Id.ToString(), 1);

        if (SprayCreated != null)
        {
            SprayCreated(spray);
        }

        return(spray);
    }