mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-01-13 14:31:34 +00:00
11 lines
300 B
TypeScript
11 lines
300 B
TypeScript
import { Animation, Component, _decorator } from "cc";
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass("PickupEffect")
|
|
export class PickupEffect extends Component {
|
|
@property(Animation) private animation: Animation;
|
|
public init(): void {
|
|
this.animation.play("PickBonus");
|
|
}
|
|
}
|