示例#1
0
		// Update is called once per frame
		void Update () {
			if (_building == true && _voxFile != null) {

				init();
				if (_voxFile != null) {
					VoxelMaker.Building (this.gameObject, VoxelReader.ReadFromFile (_voxFile), this._material);
				}

				_building = false;	
			}
		}