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(); } }
static void ResetNextBonus() { HPlayerPrefs.DeleteKey(CACHED_BONUS_ID_KEY); HPlayerPrefs.DeleteKey(COLLECTING_TIMESTAMP_KEY); }