Beispiel #1
0
    //CaptureScreenshot runs asynchronously, so you'll need to either capture the screenshot early and wait a fixed time
    //for it to save, or set a unique image name and check if the file has been created yet before sharing.
    IEnumerator delayedShare(string screenShotPath, string text)
    {
        while (!File.Exists(screenShotPath))
        {
            yield return(new WaitForSeconds(.05f));
        }

        menuObject.SetActive(true);
        optionsObject.SetActive(true);
        confirmButton.SetActive(true);
        shareButton.SetActive(true);
        titleObject.SetActive(true);

        NativeSharePhoto.Share("", screenShotPath, "", "", "image/png", true, "");
    }
Beispiel #2
0
 public void Share()
 {
     GameSound.gameSound.PlaySFX("button");
     NativeSharePhoto.Share("Olá! Jogue esse jogo que é demais! clique aqui: http://contagotas.online/services/redirect/", null, "contagotas.online/services/redirect/", "", "text/html", true, "");
 }