예제 #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++;
         }
     }
 }
예제 #2
0
 public void UploadImage()
 {
     imgurClient.UploadImageFromFilePath(Application.persistentDataPath + "/screentest.png");
 }
예제 #3
0
 public void UploadImage(string path, Vector3 camPos)
 {
     imgurClient.UploadImageFromFilePath(path);
     pos = camPos;
 }
예제 #4
0
 public void UploadImage()
 {
     imgurClient.UploadImageFromFilePath("PathToSomeImage.png");
 }