Slash-The-Hordes/assets/Scripts/Game/Items/XP.ts
2022-12-23 09:22:22 +01:00

15 lines
349 B
TypeScript

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");
}
}