public void ShareScreenshot() { string path = System.IO.Path.Combine(Application.persistentDataPath, screenshotFilename); string msg = shareMessage; msg = msg.Replace("[score]", ScoreManager.Instance.Score.ToString()); MobileNativeShare.ShareImage(path, screenshotFilename, msg); }
public void ShareScreenshot() { if (!string.IsNullOrEmpty(TwoStepScreenshotPath)) { MobileNativeShare.ShareImage(TwoStepScreenshotPath, sampleMessage); } else { Debug.Log("Please save a screenshot first."); } }