mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 19:28:53 +00:00
15 lines
349 B
TypeScript
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");
|
|
}
|
|
}
|