mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-11 09:36:17 +00:00
Pauser, game modal launcher
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import { Component, Label, NodeEventType, _decorator } from "cc";
|
||||
import { ISignal } from "../../../Services/EventSystem/ISignal";
|
||||
import { Signal } from "../../../Services/EventSystem/Signal";
|
||||
import { UpgradeType } from "../../Upgrades/UpgradeType";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass("LevelUpSkill")
|
||||
export class LevelUpSkill extends Component {
|
||||
@property(Label) private skillTitle: Label;
|
||||
private chooseSkillEvent: Signal<LevelUpSkill> = new Signal<LevelUpSkill>();
|
||||
public init(skillTitle: string): void {
|
||||
this.skillTitle.string = skillTitle;
|
||||
public init(skillType: UpgradeType): void {
|
||||
this.skillTitle.string = `Skill ${skillType}`;
|
||||
this.node.on(NodeEventType.MOUSE_DOWN, this.chooseSkill, this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user