public static Floor CreateFromTransfer(FloorTransfer ft) { GameObject go = Instantiate(PrefabManager.instance.FloorPrefab) as GameObject; Floor f = go.GetComponent <Floor> (); f.ImportTransfer(ft); return(f); }
public void ImportTransfer(FloorTransfer ft) { id = ft.id; uid = ft.uid; version = ft.version; created = ft.created; updated = ft.updated; floorName = ft.name; popularname = ft.popularname; height = ft.height; referenceHeight = ft.referenceHeight; }