Beispiel #1
0
    public void Sozai3Enter()
    {
        SelectCount++;

        if (SelectCount == 1)
        {
            SelectSozai1.GetComponent <Image>().sprite = Sozai3.GetComponent <Image>().sprite;
            Sozai3.SetActive(false);

            InfoSozai1.sprite = Sozai3.GetComponent <Image>().sprite;
            SelectSozai1.SetActive(true);

            MSozai3 = true;
        }
        else if (SelectCount == 2)
        {
            SelectSozai2.GetComponent <Image>().sprite = Sozai3.GetComponent <Image>().sprite;
            Sozai3.SetActive(false);

            InfoSozai2.sprite = Sozai3.GetComponent <Image>().sprite;
            SelectSozai2.SetActive(true);

            MSozai3 = true;
        }
    }
Beispiel #2
0
    public void EnterNoButton()
    {
        InfoWindow.SetActive(false);
        SelectSozai1.SetActive(false);
        SelectSozai2.SetActive(false);

        Sozai1.SetActive(true);
        Sozai2.SetActive(true);
        Sozai3.SetActive(true);
        Sozai4.SetActive(true);

        MSozai1 = false;
        MSozai2 = false;
        MSozai3 = false;
        MSozai4 = false;

        SelectSozai1.GetComponent <Image>().sprite = null;
        SelectSozai2.GetComponent <Image>().sprite = null;
        SelectCount  = 0;
        InfoTxt.text = "1種類目の素材を選んでください";
    }