示例#1
0
    public static void ShowCollect()
    {
        Int_Intern_Collect.SetActive(true);
        Int_Intern_Options.SetActive(true);
        Int_Intern_Desc.SetActive(false);

        TextMeshProUGUI o1 = Int_Intern_OptionA.GetComponent <TextMeshProUGUI>();
        TextMeshProUGUI o2 = Int_Intern_OptionB.GetComponent <TextMeshProUGUI>();
        TextMeshProUGUI o3 = Int_Intern_OptionC.GetComponent <TextMeshProUGUI>();

        Image i = Int_Intern_Image.GetComponent <Image>();

        if (i != null)
        {
            i.sprite = CharControl.GetLastCard().CardImage;
        }

        if (o1 != null)
        {
            o1.text = CharControl.GetLastCard().Word1;
        }
        if (o2 != null)
        {
            o2.text = CharControl.GetLastCard().Word2;
        }
        if (o3 != null)
        {
            o3.text = CharControl.GetLastCard().Word3;
        }

        selected = CharControl.GetLastCard();

        GameState = 1;
    }
示例#2
0
    public static void ShowSelected(int number)
    {
        Int_Intern_Options.SetActive(false);
        Int_Intern_Desc.SetActive(true);

        TextMeshProUGUI desc = Int_Intern_Desc.GetComponent <TextMeshProUGUI>();

        if (number == 0 && desc != null)
        {
            desc.text = CharControl.GetLastCard().Meaning1;
        }
        if (number == 1 && desc != null)
        {
            desc.text = CharControl.GetLastCard().Meaning2;
        }
        if (number == 2 && desc != null)
        {
            desc.text = CharControl.GetLastCard().Meaning3;
        }

        GameState = 2;
    }