Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        UIbackground.gameObject.SetActive(false);
        UImanager.allUIoff();
        hashcode.GetComponent <Text>().text = user.hashcode.ToString();


        List <Dictionary <string, object> > data = CSVReader.Read("cardData");

        // data[cardNum]["cardNUM"] : 0~4
        // data[cardNum]["cardName"] : 카드이름
        // data[cardNum]["boothName"] : 부스이름
        // data[cardNum]["script"] : 설명



        //랜덤으로 카드종류 정하고 배경 출력
        card_bgrd.sprite = bgrd_list[cardNum];

        //Debug.Log((string) data[cardNum]["boothName"]);

        //API.GetComponent<api>().Post(data[cardNum]["boothName"]]);

        // 설명 출력
        head.text   = data[cardNum]["cardName"] + " 카드";
        script.text = (string)data[cardNum]["script"];

        //Debug.Log(data[cardNum]["boothName"]);
    }
Example #2
0
    void Start()
    {
        UIbackground.gameObject.SetActive(false);

        UImanager.allUIoff();
        hashcode.GetComponent <Text>().text = user.hashcode.ToString();
    }