예제 #1
0
        /// <summary>
        /// Close screen
        /// </summary>
        public virtual void Close(bool animate = true)
        {
            isOpened = false;

            if (tween)
            {
                if (animate)
                {
                    tween.PlayBackward(true);
                }
                else
                {
                    tween.Progress(0f, PlaybackDirection.FORWARD);
                }
            }

            SetInteractable(false);
            SetBlockrays(false);

            onClose.Invoke();
        }