Пример #1
0
        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();
                }
            }
        }
Пример #3
0
        void Update()
        {
            bool enabledIt = VSSHARE.GetButtonShareState() == ButtonShareState.isClosed;

            button.interactable = enabledIt;
        }
Пример #4
0
 public void OnClickedButton()
 {
     VSSHARE.DOHideScreenshotIcon();
 }