Пример #1
0
        public void Save(Texture2D image)
        {
#if HAS_SERVER
            if (_bootstrap.IsMobile && SaveOnMobile)
            {
                return;
            }
#endif

            byte[] file = image.EncodeToJPG();
            DebugLog("Saving on: " + DataFolder + "/pictures/" + _registrationData.GetActualRegistry("UniqueId") + ".jpg");
            File.WriteAllBytes(DataFolder + "/pictures/" + _registrationData.GetActualRegistry("UniqueId") + ".jpg", file);
            if (Saved != null)
            {
                Saved();
            }
            _progressionCounter++;
            PlayerPrefs.SetInt("io_progression", _progressionCounter);

#if HAS_SERVER
            if (SentPicturesToServer)
            {
                SendImageToServer(file);
            }
#endif
        }
Пример #2
0
 public string GetActualRegistry(string field)
 {
     return(_data.GetActualRegistry(field));
 }