Ejemplo n.º 1
0
    private void InitAllSlots()
    {
        GameStateModel.SaveMeta meta01 = CheckMetaFile(SaveLoadConst.FILE01NAME);
        GameStateModel.SaveMeta meta02 = CheckMetaFile(SaveLoadConst.FILE02NAME);
        GameStateModel.SaveMeta meta03 = CheckMetaFile(SaveLoadConst.FILE03NAME);

        slot01Text.text = meta01 == null ? SaveLoadConst.EmptySlotTextInLoad : meta01.savedTime + " " + meta01.locationAtSavedTime;
        slot02Text.text = meta02 == null ? SaveLoadConst.EmptySlotTextInLoad : meta02.savedTime + " " + meta02.locationAtSavedTime;
        slot03Text.text = meta03 == null ? SaveLoadConst.EmptySlotTextInLoad : meta03.savedTime + " " + meta03.locationAtSavedTime;
    }
Ejemplo n.º 2
0
 public void RebootGameWithData(GameStateModel model, GameStateModel.SaveMeta meta)
 {
     ChangeScene(meta.locationAtSavedTime, model);
 }