yantar/assets/Scripts/ux/HideButton.ts
Georgy Shive 302bce20c1 избавился от дублирующего и не нужного
добавил кнопку которая исчезает сразу после первого
нажатия
2025-04-03 16:37:00 +07:00

15 lines
292 B
TypeScript

import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('HideButton')
export class HideButton extends Component {
@property(Node)
public equipmentShowButton: Node = null!;
onclick(){
this.equipmentShowButton.active= false;
}
}