mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-12-08 13:49:29 +00:00
Item manager
This commit is contained in:
10
assets/Scripts/Game/Items/PickupEffect/PickupEffect.ts
Normal file
10
assets/Scripts/Game/Items/PickupEffect/PickupEffect.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user