コード例 #1
0
    public void EditSpray(ISpray spray)
    {
        Debug.Log("Editing spray as new spray");
        CleanupWipTexture();
        inWIP = true;
        if (currentSpray != spray)
        {
            spray.LoadTexture();
            cameraCapture.LoadImage(spray.Texture);
            spray.UnloadTexture();

            googleAnalytics.LogEvent("Spray", "Edit Spray", spray.Id.ToString(), 1);
        }
        currentSpray = null;
    }
コード例 #2
0
    public void PreviewSpray(ISpray spray)
    {
        Debug.Log("Previewing spray");

        if (inWIP == true)
        {
            CleanupWipTexture();
            wipTextureBlank  = Blank;
            wipTextureBackup = cameraCapture.CopyToNewTexture();
            wipTextureBackup.Apply();
        }
        else
        {
            wipTextureBlank = false;
        }
        Blank        = false;
        inWIP        = false;
        currentSpray = spray;
        spray.LoadTexture();
        cameraCapture.LoadImage(spray.Texture);
        spray.UnloadTexture();

        googleAnalytics.LogEvent("Spray", "Preview Spray", spray.Id.ToString(), 1);
    }