Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class DialoguePanelController : MonoBehaviour
- {
- [SerializeField] private CanvasGroup _dialoguePanel;
- private void Start()
- {
- DisablePanel();
- }
- public void EnablePanel()
- {
- _dialoguePanel.alpha = 1;
- _dialoguePanel.interactable = true;
- _dialoguePanel.blocksRaycasts = true;
- }
- public void DisablePanel()
- {
- _dialoguePanel.alpha = 0;
- _dialoguePanel.interactable = false;
- _dialoguePanel.blocksRaycasts = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement