Exemple #1
0
        public static void OnNavMenuToggle()
        {
            if (OnMenuToggle == null)
            {
                return;
            }

            OnMenuToggle.Invoke();
        }
Exemple #2
0
 public virtual void Awake()
 {
     unhoveredBackgroundSprite = backgroundImage.sprite;
     menuButton.onClick.RemoveAllListeners();
     menuButton.onClick.AddListener(() => OnMenuToggle?.Invoke(this));
 }