[add] script
[add] HoldButton
This commit is contained in:
12
assets/Script/_BootLoader/Npm.meta
Normal file
12
assets/Script/_BootLoader/Npm.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.2",
|
||||
"uuid": "c003e05b-fa36-4f48-a9ad-3f8fc9ba04ed",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
||||
36
assets/Script/_BootLoader/Npm/NodePackageManager.ts
Normal file
36
assets/Script/_BootLoader/Npm/NodePackageManager.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import dayjs = require("dayjs");
|
||||
|
||||
/** NPM管理包 */
|
||||
export default class NodePackageManager {
|
||||
//#region static 屬性
|
||||
|
||||
private static _instance: NodePackageManager = null;
|
||||
public static get Instance(): NodePackageManager { return NodePackageManager._instance; }
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region public 需require 屬性
|
||||
|
||||
public Dayjs: typeof dayjs = dayjs;
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Lifecycle
|
||||
|
||||
constructor() {
|
||||
NodePackageManager._instance = this;
|
||||
this._initDayjs();
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Custom Function
|
||||
|
||||
|
||||
private _initDayjs(): void {
|
||||
require("dayjs/locale/zh-tw");
|
||||
this.Dayjs.locale("zh-tw");
|
||||
}
|
||||
|
||||
//#endregion
|
||||
}
|
||||
9
assets/Script/_BootLoader/Npm/NodePackageManager.ts.meta
Normal file
9
assets/Script/_BootLoader/Npm/NodePackageManager.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.8",
|
||||
"uuid": "a91a5df1-ac62-4993-a364-cf4b46cfb787",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
Reference in New Issue
Block a user