public static void restoreFromBundle(Bundle bundle) {
   goldCollected = bundle.getInt(GOLD);
   deepestFloor = bundle.getInt(DEEPEST);
   enemiesSlain = bundle.getInt(SLAIN);
   foodEaten = bundle.getInt(FOOD);
   potionsCooked = bundle.getInt(ALCHEMY);
   piranhasKilled = bundle.getInt(PIRANHAS);
   nightHunt = bundle.getInt(NIGHT);
   ankhsUsed = bundle.getInt(ANKHS);
   duration = bundle.getFloat(DURATION);
   amuletObtained = bundle.getBoolean(AMULET);
 }
示例#2
0
 @Override
 public void restoreFromBundle(Bundle bundle) {
   super.restoreFromBundle(bundle);
   left = bundle.getFloat(LEFT);
 }
 @Override
 public void restoreFromBundle(Bundle bundle) {
   time = bundle.getFloat(TIME);
   id = bundle.getInt(ID);
 }