public DecorationSerialized(Decoration decorationToSerialized) { floorId = decorationToSerialized.currentFloor.id; type = decorationToSerialized.model; }
public DecorationSerialized(int id, int floorId, Decoration.TypeOfDecoration type) { this.id = id; this.floorId = floorId; this.type = type; }
private GameObject DecoractionPreFabByModel(Decoration.TypeOfDecoration model) { return(decorationPreFabs.Find(decoration => decoration.GetComponent <Decoration>().model == model)); }