Beispiel #1
0
    private void closePanel()
    {
        secondPanel.GetComponent <CanvasGroup>().alpha = 0;
        panelFlag = false;

        if (manuManager == null)
        {
            manuManager = manuManager.Instance;
        }

        manuManager.unRockFirstPanel();
    }
Beispiel #2
0
    public void itemPanelOpen()
    {
        itemPanel.GetComponent <CanvasGroup>().alpha = 1;
        panelFlag     = true;
        selectedNum   = 0;
        pageNum       = 0;
        pageText.text = "page1";

        if (manuManager == null)
        {
            manuManager = manuManager.Instance;

            for (int i = 0; i < itemTexts.Length; i++)
            {
                itemTexts[i].transform.localPosition = new Vector3(35, 200 - textYinterval * i, 0);
            }
        }

        pageText.transform.localPosition = new Vector3(35, 200 - textYinterval * 10, 0);

        selectArrow = manuManager.sendArrow();
        StartCoroutine("setArrow");
    }