public void LoadFromTextStream(Stream steam) { steam.Position = 0; StreamReader reader = new StreamReader(steam); string content = reader.ReadToEnd(); m_BundleManifest = JsonUtility.FromJson <BundleManifest>(content); }
public void LoadFromBinaryStream(Stream steam) { BinaryReader reader = new BinaryReader(steam); //skip head sign //reader.ReadInt32(); steam.Position = 4; m_BundleManifest = new BundleManifest(); m_BundleManifest.Read(reader); }