Beispiel #1
0
        void LoadFromCache()
        {
            Debug.LogFormat("[Utils] Loading texture from path: '{0}'.", path);
            var image = LoadLocalImage(path);

            if (image == null)
            {
                HPlayerPrefs.DeleteKey(url);
                DispatchError();
            }
            else
            {
                sprite = Utils.GetSprite(image);
                DispatchSuccess();
            }
        }
Beispiel #2
0
 static void ResetNextBonus()
 {
     HPlayerPrefs.DeleteKey(CACHED_BONUS_ID_KEY);
     HPlayerPrefs.DeleteKey(COLLECTING_TIMESTAMP_KEY);
 }