phaser4-rex-plugins
Version:
13 lines (10 loc) • 323 B
JavaScript
import GetGame from '../../../utils/system/GetGame.js';
import { CacheName } from '../Const.js';
var GetCharacterCache = function (scene, key) {
var cache = GetGame(scene).cache.custom[CacheName];
if (!cache) {
return null;
}
return cache.get(key);
}
export default GetCharacterCache;