コード例 #1
0
    public void LoadSpread(PhysicalGame page)
    {
        spread.SetActive(true);
        single.SetActive(false);



        title1.text = page.title1;
        title2.text = page.title2;
        text1.text  = page.writing1;
        text2.text  = page.writing2;
    }
コード例 #2
0
    public void LoadSingle(PhysicalGame page)
    {
        single.SetActive(true);
        spread.SetActive(false);


        imageobject.SetActive(false);

        if (page.SingleGame)
        {
            te.SetActive(true);
            sing.SetActive(false);

            title3.text = page.title1;
            text3.text  = page.writing1;
        }
        else
        {
            te.SetActive(false);
            sing.SetActive(true);

            single1.text = page.title1;
            single2.text = page.writing1;
        }
        if (page.sprite != null)
        {
            imageobject.SetActive(true);
            image.sprite = page.sprite;
        }

        if (page.title1 == "null")
        {
            single.SetActive(false);
        }

        if (page.videoClip != null)
        {
            videoFrame.SetActive(true);
            Video.clip = page.videoClip;
        }
        else
        {
            videoFrame.SetActive(false);
        }
    }