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


            VSSHARE.DOTakeScreenShot();
        }
Beispiel #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;
        }
Beispiel #4
0
 public void OnClickedButton()
 {
     VSSHARE.DOHideScreenshotIcon();
 }