Exemple #1
0
    public ItemText CreateItem(int idx)
    {
        GameObject go    = Instantiate(m_prefabItem, m_ScrollRect.content);
        ItemText   kItem = go.GetComponent <ItemText>();

        kItem.transform.localScale = new Vector3(1, 1, 1);  // 반드시 할것
        kItem.Initialize(idx, cAnimalList[idx]);

        return(kItem);
    }
Exemple #2
0
    static public void CreateText(GameObject go, string textString, Transform trans)
    {
        ItemText itemText = go.GetComponent <ItemText>();

        itemText.Initialize(textString, trans.position);
    }