Item refactoring

This commit is contained in:
Martin
2022-12-23 09:22:22 +01:00
parent 1b5b449d0b
commit 4b2d35a733
34 changed files with 618 additions and 578 deletions

View File

@@ -0,0 +1,14 @@
import { Animation, Vec3, _decorator } from "cc";
import { Item } from "./Item";
const { ccclass, property } = _decorator;
@ccclass("XP")
export class XP extends Item {
@property(Animation) private animation: Animation;
public setup(position: Vec3): void {
super.setup(position);
this.animation.play("DropStart");
}
}