mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-26 11:48:54 +00:00
16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
import { _decorator, Component, Node } from "cc";
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass("UpgradeLevelPointUI")
|
|
export class UpgradeLevelPointUI extends Component {
|
|
@property(Node) private upgradedGraphics: Node;
|
|
|
|
public init(): void {
|
|
this.upgradedGraphics.active = false;
|
|
}
|
|
|
|
public upgrade(): void {
|
|
this.upgradedGraphics.active = true;
|
|
}
|
|
}
|