mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-01-15 15:31:27 +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;
|
||
|
}
|
||
|
}
|