예제 #1
0
        // Update is called once per frame
        //private void Update()
        //{

        //}



        //Call the default gallery application. If there are two or more, select with the launcher.
        public void Show()
        {
#if UNITY_EDITOR
            Debug.Log("GalleryPickController.Show called");
#elif UNITY_ANDROID
            switch (pickType)
            {
            case PickType.Image:
                AndroidPlugin.OpenGallery(gameObject.name, "ReceiveResult", "ReceiveError");
                break;

            case PickType.Video:
                AndroidPlugin.OpenGalleryVideo(gameObject.name, "ReceiveResult", "ReceiveError");
                break;
            }
#endif
        }