Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (CrossPlatformInputManager.GetButtonDown("left"))
        {
            pos[labelpos] = db_list.GetFocus();
            //dispos[labelpos] = page.GetScroll();
            labelpos--;
            if (labelpos == -1)
            {
                labelpos = labels - 1;
            }
            db_list.SetFocus(pos[labelpos]);
            db_list.InitText(rls[labelpos]);

            //page.SetScroll(dispos[labelpos]);
        }
        if (CrossPlatformInputManager.GetButtonDown("right"))
        {
            pos[labelpos] = db_list.GetFocus();
            //dispos[labelpos] = page.GetScroll();
            labelpos++;
            if (labelpos == labels)
            {
                labelpos = 0;
            }
            db_list.SetFocus(pos[labelpos]);
            db_list.InitText(rls[labelpos]);

            //page.SetScroll(dispos[labelpos]);
        }
        if (CrossPlatformInputManager.GetButtonDown("A"))
        {
            //page.SetBInfo(!page.GetBInfo());
            if (CrossPlatformInputManager.GetButtonDown("X"))
            {
                cospos++;
            }
        }
        if (CrossPlatformInputManager.GetButtonDown("B"))
        {
            SceneManager.LoadScene("Title");
        }
    }