Exemple #1
0
        private bool IsAnimationStillRunning()
        {
            if (isRunningAnimation)
            {
                return(true);
            }
            Accordion current = next;

            while (current != null && current.gameObject.activeSelf)
            {
                if (current.isRunningAnimation)
                {
                    return(true);
                }
                current = current.next;
            }
            current = prev;
            while (current != null && current.gameObject.activeSelf)
            {
                if (current.isRunningAnimation)
                {
                    return(true);
                }
                current = current.prev;
            }
            return(false);
        }
Exemple #2
0
        public void CloseCurrentStretch()
        {
            Accordion current = currentActive();

            if (current == null)
            {
                return;
            }
            current.isActive         = false;
            current.sign.eulerAngles = new Vector3(0, 0, 0);
            float height = current.content.rect.height;

            ProfileManager.Instance.ShrinkImmediately(height);
            Accordion nextOne = current.next;

            while (nextOne != null && nextOne.gameObject.activeSelf)
            {
                nextOne.ShrinkImmediately(height);
                nextOne = nextOne.next;
            }
        }
Exemple #3
0
        private Accordion currentActive()
        {
            Accordion current = next;

            while (current != null && current.gameObject.activeSelf)
            {
                if (current.isActive)
                {
                    return(current);
                }
                current = current.next;
            }
            current = prev;
            while (current != null && current.gameObject.activeSelf)
            {
                if (current.isActive)
                {
                    return(current);
                }
                current = current.prev;
            }
            return(null);
        }
Exemple #4
0
        public void Init()
        {
            RemovePasswordInputContent();
            toggleActiveTournaments(true);
            mainPageRect.localPosition = new Vector3(mainPageRect.localPosition.x, 0);
            username.text = TacoManager.User.name;
            email.text    = TacoManager.User.email;
            FillFullAddress();
            FillReferenceCode();
            FillAddressesField();
            GetTransaction();
            Accordion ele1 = mainPageRect.Find("Body").GetChild(0).GetComponent <Accordion>();

            if (ele1.isActive)
            {
                mainPageRect.Find("Body").GetChild(1).GetComponent <Accordion>().CloseCurrentStretch();
            }
            else
            {
                ele1.CloseCurrentStretch();                //close all element
            }

            GetActiveTournament();
        }