use of com.watabou.noosa.InterstitialPoint in project pixel-dungeon-remix by NYRDS.
the class WndSaveSlotSelect method onSelect.
protected void onSelect(int index) {
final InterstitialPoint returnTo = this;
if (saving) {
try {
Dungeon.save();
slot = slotNameFromIndexAndMod(index);
SaveUtils.copySaveToSlot(slot, Dungeon.heroClass);
} catch (Exception e) {
throw new TrackedRuntimeException(e);
}
}
Game.softPaused = true;
slot = getSlotToLoad(index);
if (PixelDungeon.donated() < 1) {
Ads.displaySaveAndLoadAd(returnTo);
} else {
returnToWork(true);
}
}
Aggregations