[LayaAir3]希望消息函数私有化

希望消息函数私有化,否则破坏了代码的封装性
const { regClass } = Laya;
@regClass()
export class NewScript extends Laya.Script {

public onAwake(): void { }

public onStart(): void { }

public onUpdate(): void { }

public onDestroy(): void { }
}

PixPin_2025-05-02_12-59-35.png

 
已邀请:

LayaAir小牛

赞同来自:

您好,感谢您的反馈,后续我们会越做越完善。

要回复问题请先

商务合作
商务合作