12345678910111213141516171819 |
- import { Node, Prefab, _decorator, assetManager, find, instantiate, sys } from 'cc';
- import { UserModel } from '../Model/UserModel';
- const { ccclass, property } = _decorator;
- @ccclass('UserManager')
- export class UserManager {
- private static _instance: UserManager | null = null;
- public static get instance(): UserManager {
- if (!this._instance) this._instance = new UserManager();
- return this._instance;
- }
- public userModel: UserModel = null;
- initilizeModel(): void {
- this.userModel = new UserModel();
- this.userModel.initialize();
- }
- }
|