This commit is contained in:
2025-09-11 12:31:10 +08:00
parent 5accb0b507
commit f3cfcecadf
24 changed files with 3379 additions and 1283 deletions
@@ -0,0 +1,19 @@
import { _decorator, Animation, Component, Node } from "cc";
const { ccclass, property } = _decorator;
@ccclass("LoadingItem")
export class LoadingItem extends Component {
@property(Animation)
animation: Animation;
protected onEnable(): void {
if (this.animation) {
this.animation.play();
}
}
protected onDisable(): void {
if (this.animation) {
this.animation.pause();
}
}
}