PanelPopUpEnvironmentBehaviour.cs 465 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.Events;
  5. using WebTools.Environments;
  6. namespace WebTools.Environments.Behaviours
  7. {
  8. public class PanelPopUpEnvironmentBehaviour : MonoBehaviour
  9. {
  10. [Header("EVENTS")]
  11. [SerializeField]
  12. private UnityEvent OnYes;
  13. [SerializeField]
  14. private UnityEvent OnNot;
  15. public void Yes()
  16. {
  17. OnYes.Invoke ();
  18. }
  19. public void Not()
  20. {
  21. OnNot.Invoke ();
  22. }
  23. }
  24. }