private void OnImagePicked(AndroidImagePickResult result)
 {
     Debug.Log("OnImagePicked");
     if(result.IsSucceeded) {
         image.renderer.material.mainTexture = result.image;
     }
 }
Esempio n. 2
0
    private void OnImage(AndroidImagePickResult result)
    {
        if (result.IsSucceeded)
        {
            _avatarImage.texture = result.Image;

            GameSparksManager.Instance.UploadAvatar(result.Image);
        }
    }
Esempio n. 3
0
    private void OnImagePicked(AndroidImagePickResult result)
    {
        Debug.Log("OnImagePicked");
        if (result.IsSucceeded)
        {
            image.GetComponent <Renderer>().material.mainTexture = result.image;
        }

        AndroidCamera.instance.OnImagePicked -= OnImagePicked;
    }
Esempio n. 4
0
    void OnAndroidImagePicked(AndroidImagePickResult obj)
    {
        UM_ImagePickResult result = new UM_ImagePickResult(obj.image);

        if (OnImagePicked != null)
        {
            OnImagePicked(result);
        }

        dispatch(IMAGE_PICKED, result);
    }
Esempio n. 5
0
 private void OnImagePicked(AndroidImagePickResult result)
 {
     if (result.IsSucceeded)
     {
         //photoTexture = result.Image;
         applePhoto(result.Image);
     }
     else
     {
         AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed");
     }
 }
    private void OnImagePickedEvent(string data)
    {
        Debug.Log("OnImagePickedEvent");
        string[] storeData;
        storeData = data.Split(AndroidNative.DATA_SPLITTER [0]);

        string codeString    = storeData[0];
        string ImagePathInfo = storeData[1];
        string ImageData     = storeData[2];

        AndroidImagePickResult result = new AndroidImagePickResult(codeString, ImageData, ImagePathInfo);

        OnImagePicked(result);
    }
Esempio n. 7
0
    private void OnImagePickedEvent(string data)
    {
        Debug.Log("OnImagePickedEvent");
        string[] storeData;
        storeData = data.Split(AndroidNative.DATA_SPLITTER [0]);

        AndroidImagePickResult result = new AndroidImagePickResult(storeData[0], storeData[1]);

        dispatch(IMAGE_PICKED, result);
        if (OnImagePicked != null)
        {
            OnImagePicked(result);
        }
    }
Esempio n. 8
0
 private void OnImage(AndroidImagePickResult result)
 {
     if (result.IsSucceeded)
     {
         if (target.mainTexture != initialTexture)
         {
             DestroyImmediate(target.mainTexture, true);
         }
         target.mainTexture = result.image;
         next.isEnabled     = true;
     }
     isTaking = false;
     AndroidCamera.instance.OnImagePicked -= OnImage;
 }
Esempio n. 9
0
    private void OnImagePicked(AndroidImagePickResult result)
    {
        AndroidCamera.Instance.OnImagePicked -= OnImagePicked;

        if (result.IsSucceeded)
        {
            AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath);
            pickedImage.GetComponent <Image> ().sprite = result.Image.ToSprite();
        }
        else
        {
            AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed");
        }
    }
    private void OnImagePicked(AndroidImagePickResult result)
    {
        Debug.Log("OnImagePicked");
        if (result.IsSucceeded)
        {
            AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath);
            image.GetComponent <Renderer> ().material.mainTexture = result.Image;
        }
        else
        {
            AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed");
        }

        AndroidCamera.Instance.OnImagePicked -= OnImagePicked;
    }
    private void OnImagePicked(AndroidImagePickResult result)
    {
        Debug.Log("OnImagePicked");
        if (result.IsSucceeded)
        {
            AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath);
            Sprite sprite = Sprite.Create(result.Image, new Rect(0.0f, 0.0f, result.Image.width, result.Image.height), new Vector2(0.5f, 0.5f));
            image.sprite = sprite;
        }
        else
        {
            AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed");
        }

        AndroidCamera.Instance.OnImagePicked -= OnImagePicked;
    }
Esempio n. 12
0
    private void OnImagePicked(AndroidImagePickResult result)
    {
        Debug.Log("OnImagePicked");
        if (result.IsSucceeded)
        {
            //AN_PoupsProxy.showMessage ("Image Pick Rsult", "Succeeded, path: " + result.ImagePath);
            //image.GetComponent<Renderer> ().material.mainTexture = result.Image;
            photoTexture       = result.Image;
            avatar.mainTexture = result.Image;
            take_photo_btn.SetActive(false);
            startPlayVideo();
            startCheckPhoto();
            //StartCoroutine ("checkPhotoVisible");
        }
        else
        {
            //AN_PoupsProxy.showMessage ("Image Pick Rsult", "Failed");
        }

        AndroidCamera.Instance.OnImagePicked -= OnImagePicked;
    }
    private void OnImagePicked(AndroidImagePickResult result)
    {
        Debug.Log("OnImagePicked");
        if (result.IsSucceeded)
        {
            //  AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath);
            Common.DebugPopUp("CameraMaster fun OnImagePicked", "Succeeded, path: " + result.ImagePath);

            // Common.infoGUI.SetImage(result.Image);//.GetComponent<Renderer>().material.mainTexture = result.Image;
            Common.playerInformation.SetMyImage(result.Image);
            path = result.ImagePath;
            Common.playerInformation.LocalImagePicked(path);
        }
        else
        {
            Common.DebugPopUp("CameraMaster fun OnImagePicked", "Image pick result failed");
            //  AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed");
        }

        AndroidCamera.Instance.OnImagePicked -= OnImagePicked;
    }
	private void OnImagePicked(AndroidImagePickResult result) {
		Debug.Log("OnImagePicked");
		if (result.IsSucceeded) {
			AN_PoupsProxy.showMessage ("Image Pick Rsult", "Succeeded, path: " + result.ImagePath);
			image.GetComponent<Renderer> ().material.mainTexture = result.Image;
		} else {
			AN_PoupsProxy.showMessage ("Image Pick Rsult", "Failed");
		}

		AndroidCamera.instance.OnImagePicked -= OnImagePicked;
	}
Esempio n. 15
0
    void OnAndroidImagePicked(AndroidImagePickResult obj)
    {
        UM_ImagePickResult result = new UM_ImagePickResult(obj.Image);

        OnImagePicked(result);
    }