通用hover效果
This commit is contained in:
@@ -24,15 +24,28 @@ export class UIManager extends Laya.Script {
|
||||
return UIManager._instance
|
||||
}
|
||||
|
||||
@property(Boolean)
|
||||
public debug: boolean = false
|
||||
|
||||
@property(Laya.Image)
|
||||
public mask: Laya.Image
|
||||
|
||||
@property(Laya.Box)
|
||||
public btn_clean: Laya.Box
|
||||
|
||||
onAwake(): void {
|
||||
UIManager._instance = this
|
||||
config.DEBUG = this.debug
|
||||
this.mask.on(Laya.Event.CLICK, this, () => {
|
||||
console.log("on click mask >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
|
||||
})
|
||||
this.mask.visible = false
|
||||
|
||||
this.btn_clean.on(Laya.Event.CLICK, this, (evt: Laya.Event) => {
|
||||
console.log("btn_clean=", evt)
|
||||
StorageManager.getInstance().cleanAll()
|
||||
})
|
||||
this.btn_clean.visible = this.debug
|
||||
}
|
||||
|
||||
private UIRoot: Laya.Panel
|
||||
|
||||
Reference in New Issue
Block a user