Пример #1
0
        public static void LoadProgressFromCloud(GameManager gameManager)
        {
            var encryptedSave = GetString(GooglePlayServicesController.SaveData);

            if (string.IsNullOrEmpty(encryptedSave))
            {
                return;
            }

            PlayerPrefs.SetInt(WorldConsts.LoadFromCloud, 1);
            PlayerPrefs.SetString(WorldConsts.CurrentCloudSave, encryptedSave);
            gameManager.RestartGame();
        }