通用hover效果

This commit is contained in:
2025-05-30 11:52:25 +08:00
parent 6d4bb79a45
commit 23a2f686cb
12 changed files with 395 additions and 122 deletions

View File

@@ -42,9 +42,6 @@ export class Home extends Laya.Script {
@property(Laya.Box)
public btn_new_white: Laya.Box
@property(Laya.Box)
public btn_clean: Laya.Box
// 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次
onAwake(): void {
const user = StorageManager.getInstance().getUser()
@@ -140,13 +137,6 @@ export class Home extends Laya.Script {
}
}
// 测试逻辑
this.btn_clean.on(Laya.Event.CLICK, this, (evt: Laya.Event) => {
console.log("btn_clean=", evt)
StorageManager.getInstance().cleanAll()
})
this.btn_clean.visible = config.DEBUG
// ======
}
public onClickNew(_evt: Laya.Event): void {