예제 #1
0
파일: Floor.cs 프로젝트: ziadsawalha/IMRSV
        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
파일: Floor.cs 프로젝트: ziadsawalha/IMRSV
 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;
 }