Пример #1
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);
    }