public void DisplayNotification()
        {
            DisplayEventManager.OnClearDisplay();
            if (_activeButton == null)
            {
                _activeButton = this;
                Activate();
                return;
            }

            if (_activeButton != this)
            {
                _activeButton.Deactivate();
                _activeButton = this;
                Activate();
                return;
            }

            if (_activeButton == this)
            {
                Deactivate();
                _activeButton = null;
                return;
            }

            Debug.Log(_activeButton.gameObject.transform.GetSiblingIndex());
        }
Ejemplo n.º 2
0
        // Use this for initialization
        private void Start()
        {
            _image = gameObject.GetComponent <RawImage>();

            // Clear Display.
            DisplayEventManager.OnClearDisplay();
        }
 public void Display()
 {
     DisplayEventManager.OnDisplayNotification(this);
 }