コード例 #1
0
        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);
        }
コード例 #2
0
 public void ShareScreenshot()
 {
     if (!string.IsNullOrEmpty(TwoStepScreenshotPath))
     {
         MobileNativeShare.ShareImage(TwoStepScreenshotPath, sampleMessage);
     }
     else
     {
         Debug.Log("Please save a screenshot first.");
     }
 }