//============================================================ public void Unserialize(IInput input) { // 读取设置 _typeCd = input.ReadUint8(); _source = input.ReadString(); _sourceType = input.ReadString(); // 设置对象 _texture = RDxCore.TextureResourceConsole.Get(_source); }
//============================================================ public FDxRsTexturePack Get(string code) { FDxRsTexturePack texture = _textures.Find(code); if (null == texture) { texture = new FDxRsTexturePack(); string fileName = MakeFileName(code); texture.LoadFile(fileName); _textures.Set(code, texture); } return(texture); }