public void OnClickedButton()
        {
            VSSHARE.OnScreenshotTaken += OnScreenshotTakenDelegate;


            VSSHARE.DOTakeScreenShot();
        }
示例#2
0
        void Start()
        {
            self = this;

            VSSHARE_START_POSITION = GetComponent <RectTransform>().position;

#if UNITY_ANDROID
            AndroidJNIHelper.debug = true;
#endif

            if (haveScreenshotAvailable)
            {
                shareElement.gameObject.SetActive(true);

                SetImage(shareElement.image, screenshot);

                if (shareSettings.showButtonShareWhenSceneRestartIfScreenshotAvailable)
                {
                    DoAnimOpenScreenshotAsAButton();
                }
            }
        }
        void Update()
        {
            bool enabledIt = VSSHARE.GetButtonShareState() == ButtonShareState.isClosed;

            button.interactable = enabledIt;
        }
示例#4
0
 public void OnClickedButton()
 {
     VSSHARE.DOHideScreenshotIcon();
 }