Não pode escolher mais do que 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- using System;
- using UnityEngine;
- using UnityEngine.UI;
-
- public class OverlayButton : MonoBehaviour
- {
- public void EnableButton(Action onClick)
- {
- base.gameObject.SetActive(true);
- this._onClick = onClick;
- this._buttonComponent.enabled = true;
- }
-
- public void DisableButton()
- {
- this._buttonComponent.enabled = false;
- base.gameObject.SetActive(false);
- }
-
- public void OnClick()
- {
- if (this._onClick != null)
- {
- this._onClick();
- }
- }
-
- [SerializeField]
- private Button _buttonComponent;
-
- private Action _onClick;
- }
|