[add] script

[add] HoldButton
This commit is contained in:
2022-05-02 21:04:23 +08:00
parent 26f0052207
commit 119db9b977
39 changed files with 5052 additions and 2726 deletions

View 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": {}
}

View 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
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.0.8",
"uuid": "a91a5df1-ac62-4993-a364-cf4b46cfb787",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}