Slash-The-Hordes/assets/Scripts/Game/Items/XP.ts

15 lines
349 B
TypeScript
Raw Normal View History

2022-12-23 08:22:22 +00:00
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");
}
}