Пример #1
0
 void Start()
 {
     if (!ShareUtils.CanShare())
     {
         this.gameObject.SetActive(false);
     }
 }
Пример #2
0
 public void Share(List <ScreenshotResolution> resolutions)
 {
     System.DateTime time = System.DateTime.Now;
     foreach (ScreenshotResolution resolution in resolutions)
     {
         // Parse
         UpdateFileName(resolution, time);
         var title   = ScreenshotNameParser.ParseSymbols(m_ShareTitle, resolution, time);
         var subject = ScreenshotNameParser.ParseSymbols(m_ShareSubject, resolution, time);
         var text    = ScreenshotNameParser.ParseSymbols(m_ShareText, resolution, time);
         // Share
         ShareUtils.ShareImage(resolution.m_Texture, resolution.m_FileName, title, subject, text);
     }
 }