示例#1
0
        public static Floor CreateFromTransfer(FloorTransfer ft)
        {
            GameObject go = Instantiate(PrefabManager.instance.FloorPrefab) as GameObject;
            Floor      f  = go.GetComponent <Floor> ();

            f.ImportTransfer(ft);
            return(f);
        }
示例#2
0
 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;
 }