Esempio n. 1
0
        private void SetCanvasGroupParameters(float alpha, bool blockRaycast)
        {
            _canvasGroup.alpha          = alpha;
            _canvasGroup.blocksRaycasts = blockRaycast;

            VisibilityChanged.Invoke(alpha == 1f ? true : false);
        }
Esempio n. 2
0
 public void InvokeVisibilityChangedEvent(bool value)
 {
     OnVisibilityChanged?.Invoke(value);
     onVisibilityChanged?.Invoke(value);
 }
Esempio n. 3
0
 private void NotifyVisibiltyChanged()
 {
     VisibilityChangedEvent?.Invoke(this, new EventArgs());
 }
Esempio n. 4
0
 private void TriggerVisibilityChangedEvent()
 {
     OnVisibilityChanged.InvokeSafely(IsVisible, transform.position);
     OnVisibilityChangedEvent.Invoke(IsVisible, transform.position);
 }