public void OnClickedButton() { bool canOpen = VSSHARE.DOOpenScreenshotButton(); if (canOpen) { Debug.Log("succefully opened screenshot because one screenshot is available"); } else { Debug.LogWarning("We can't open screenshot if no screenshot is available"); } }
/// <summary> /// Method to create the level /// </summary> public void CreateGame(int level) { ReportScoreToLeaderboard(level); playerCanShoot = false; isGameOver = true; Application.targetFrameRate = 60; Time.timeScale = 1; GC.Collect(); this.Level = level; StopAllCoroutines(); //Camera.main.backgroundColor = constant.BackgroundColor; Camera.main.backgroundColor = constant.BackgroundColors[UnityEngine.Random.Range(0, constant.BackgroundColors.Length)]; DespawnAll(); Dots = new List <DotManager>(); this.LEVEL = levelManager.GetLevel(Level); CircleBorder.localScale = new Vector3(1, 1, 1); CreateDotOnCircle(); CreateListDots(); PositioningDotsToShoot(); LaunchRotateCircle(); isSuccess = false; isGameOver = false; playerCanShoot = true; #if VS_SHARE VSSHARE.DOOpenScreenshotButton(); #endif }