public void OnClickedButton() { VSSHARE.OnScreenshotTaken += OnScreenshotTakenDelegate; VSSHARE.DOTakeScreenShot(); }
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; }
public void OnClickedButton() { VSSHARE.DOHideScreenshotIcon(); }