예제 #1
0
 public ISlotObjectPersistable Load()
 {
     try
     {
         return((ItemBar)SerializationController.Deserialize(PrefabRepository.PersistItemBarName + ".txt"));
     }
     catch (Exception e)
     {
         return(null);
     }
 }
예제 #2
0
 public static World LoadMap(string map, int seed)
 {
     try {
         Debug.Log("Load World");
         World world = (World)SerializationController.Deserialize(map + "_" + seed + ".txt");
         return(world);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }