mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-01-10 21:13:09 +00:00
14 lines
410 B
TypeScript
14 lines
410 B
TypeScript
import { Component, _decorator } from "cc";
|
|
import { UnitHealth } from "../UnitHealth";
|
|
import { PlayerHealthUI } from "./PlayerHealthUI";
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass("PlayerUI")
|
|
export class PlayerUI extends Component {
|
|
@property(PlayerHealthUI) private healthUI: PlayerHealthUI;
|
|
|
|
public init(playerHealth: UnitHealth): void {
|
|
this.healthUI.init(playerHealth);
|
|
}
|
|
}
|