This repository has been archived on 2022-09-16. You can view files and clone it, but cannot push or open issues/pull-requests.
|
class Player {
|
|
constructor() {
|
|
console.info("Test");
|
|
}
|
|
}
|
|
|
|
let player: Player | null = null;
|
|
|
|
export default () => {
|
|
if (player === null) {
|
|
player = new Player();
|
|
}
|
|
|
|
return player;
|
|
};
|