Exemple #1
0
 private void Update()
 {
     if (Input.GetKeyDown(exitKey))
     {
         for (int i = 0; i < transform.childCount; i++)
         {
             Destroy(transform.GetChild(i));
         }
         Destroy(gameObject);
         if (!webcamTexture.isPlaying)
         {
             imgurClient.UploadImageFromFilePath(imagesFolder + "/img" + photoEnumeration + ".png");
             photoEnumeration++;
         }
     }
 }
Exemple #2
0
 public void UploadImage()
 {
     imgurClient.UploadImageFromFilePath(Application.persistentDataPath + "/screentest.png");
 }
Exemple #3
0
 public void UploadImage(string path, Vector3 camPos)
 {
     imgurClient.UploadImageFromFilePath(path);
     pos = camPos;
 }
Exemple #4
0
 public void UploadImage()
 {
     imgurClient.UploadImageFromFilePath("PathToSomeImage.png");
 }