Esempio n. 1
0
    private void FixedUpdate()
    {
        if (isTouch)
        {
            touchTimer += Time.fixedDeltaTime;
            if (touchTimer > returnTimer)
            {
                CloseCircle();
                touchTimer = 0;
                isTouch    = false;
                isCheck    = false;
            }
        }
        if (!isCheck)
        {
            return;
        }
        for (int i = 0; i < moveImageList.Count; i++)
        {
            if (WaitPanel.IsInCircle(transform.localPosition, 800, moveImageList[i].currentPos))
            {
                if (!moveImageList[i].bigImageList.Contains(bigImage))
                {
                    moveImageList[i].bigImageList.Add(bigImage);
                    moveImageList[i].isInCircle = true;
                }
            }
            else
            {
                if (moveImageList[i].bigImageList.Contains(bigImage))
                {
                    moveImageList[i].bigImageList.Remove(bigImage);
                    if (moveImageList[i].bigImageList.Count <= 0)
                    {
                        moveImageList[i].isInCircle = false;
                    }
                }
            }
        }

        currentPos = this.transform.localPosition;
    }