Exemple #1
0
    public void Sozai2Enter()
    {
        SelectCount++;

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

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

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

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

            MSozai2 = true;
        }

        Debug.Log("Sozai2");
    }
Exemple #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種類目の素材を選んでください";
    }