public static void OnNavMenuToggle() { if (OnMenuToggle == null) { return; } OnMenuToggle.Invoke(); }
public virtual void Awake() { unhoveredBackgroundSprite = backgroundImage.sprite; menuButton.onClick.RemoveAllListeners(); menuButton.onClick.AddListener(() => OnMenuToggle?.Invoke(this)); }