示例#1
0
    public void Initialize(CsvVoiceData _data)
    {
        m_csvVoiceData = _data;

        SetSprite(_data);
        initialize(_data);
    }
示例#2
0
    public override void initialize(CsvVoiceData _data)
    {
        base.initialize(_data);
        m_lbDescription.text = "";
        m_lbName.text        = "";
        m_lbPrice.text       = "";

        m_lbDescription.text = _data.description;
        m_lbName.text        = _data.name;
        m_csvVoiceData       = _data;

        m_goPurchased.SetActive(false);

        foreach (string product_id in DataManagerAlarm.Instance.purchased_list)
        {
            Purchase(product_id);

            /*
             * if (product_id.Equals (_data.name_voice)) {
             *      m_btnBuy.gameObject.SetActive (false);
             *      m_goPurchased.SetActive (true);
             * }
             */
        }

        foreach (GoogleSkuInfo info in DataManagerAlarm.Instance.product_data_list)
        {
            if (info.productId.Equals(m_csvVoiceData.name_voice))
            {
                Debug.LogError("here" + m_csvVoiceData.name_voice);

                string[] stArrayData = info.title.Split(' ');

                if (0 < stArrayData.Length)
                {
                }
                m_lbName.text        = info.description;
                m_lbDescription.text = stArrayData [0];
                m_lbPrice.text       = string.Format("{0}円", info.price);
            }
        }
    }
示例#3
0
 public virtual void initialize(CsvVoiceData _data)
 {
 }
示例#4
0
 public void SetSprite(CsvVoiceData _data)
 {
     m_switchSprite.SetSize(161, 161);
     m_switchSprite.SetSprite(_data.name_icon);
 }
示例#5
0
 public override void initialize(CsvVoiceData _data)
 {
     base.initialize(_data);
     m_lbDescription.text = _data.description;
 }