Пример #1
0
        private void Awake()
        {
            _popup       = GetComponent <SlidingPopup>();
            _window      = GetComponent <RectTransform>();
            _button      = GetComponentInChildren <Button>();
            _buttonHider = _button.GetComponent <CanvasGroup>();
            _canvasGroup = GetComponent <CanvasGroup>();

            _initialPosition   = transform.position;
            _buttonHider.alpha = 0;
        }
Пример #2
0
        private void Awake()
        {
            _popup = GetComponent <SlidingPopup>();

            StartCoroutine(CheckStartDisplay());
        }