mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-26 11:48:54 +00:00
30 lines
885 B
TypeScript
30 lines
885 B
TypeScript
import { _decorator, Component, Node } from "cc";
|
|
import { AudioAssets } from "./AudioAssets";
|
|
import { MetaUpgradeIcons } from "./MetaUpgradeIcons";
|
|
import { UpgradeIcons } from "./UpgradeIcons";
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass("GameAssets")
|
|
export class GameAssets extends Component {
|
|
@property(UpgradeIcons) private upgradeIcons: UpgradeIcons;
|
|
@property(MetaUpgradeIcons) private metaUpgradeIcons: MetaUpgradeIcons;
|
|
@property(AudioAssets) private audioAssets: AudioAssets;
|
|
|
|
public init(): void {
|
|
this.upgradeIcons.init();
|
|
this.metaUpgradeIcons.init();
|
|
}
|
|
|
|
public get UpgradeIcons(): UpgradeIcons {
|
|
return this.upgradeIcons;
|
|
}
|
|
|
|
public get MetaUpgradeIcons(): MetaUpgradeIcons {
|
|
return this.metaUpgradeIcons;
|
|
}
|
|
|
|
public get AudioAssets(): AudioAssets {
|
|
return this.audioAssets;
|
|
}
|
|
}
|