添加序列帧动画
This commit is contained in:
@@ -13,6 +13,9 @@ const { regClass, property } = Laya
|
||||
export class GameDone extends Laya.Script {
|
||||
declare owner: Laya.Box
|
||||
|
||||
@property(Laya.Image)
|
||||
public bg: Laya.Image
|
||||
|
||||
@property(Laya.Image)
|
||||
public obj_light: Laya.Image
|
||||
|
||||
@@ -50,6 +53,9 @@ export class GameDone extends Laya.Script {
|
||||
public btn_continue: Laya.Box
|
||||
|
||||
onAwake(): void {
|
||||
|
||||
ResourceManager.getInstance().loadTexture(respath.bg_done, this.bg)
|
||||
|
||||
this.owner.x = 0
|
||||
this.owner.y = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user