public List <DormSave> Save() { List <DormSave> dormSaves = new List <DormSave>(); foreach (Transform child in transform) { DormSave tempDorm = new DormSave(child.name, child.GetComponent <BasicChar>()); dormSaves.Add(tempDorm); } return(dormSaves); }
public LoadedChar(BasicChar basicChar, DormSave dormSave) { Loaded = basicChar; Save = dormSave; }