unity-find-fault
Version:
A tool to find fault in unity project.
21 lines • 526 B
JavaScript
import fs from "fs-extra";
export class Record {
static _Ins;
static get Instance() {
if (Record._Ins == null) {
Record._Ins = new Record();
}
return this._Ins;
}
file = null;
async setRecordFile(file) {
this.file = file;
await fs.ensureFile(file);
}
async recordGUID(guid, file) {
if (!this.file)
return;
await fs.appendFile(this.file, guid + ' ' + file + '\n', 'utf-8');
}
}
//# sourceMappingURL=Record.js.map