Exemplo n.º 1
0
#pragma warning restore

    public void Init(int id, string contents, StaticValue.OneIntParameter callBack)
    {
        mIDtext.text       = id.ToString();
        mContentsText.text = contents;

        mAddOrRemoveButton.onClick.AddListener(() => { callBack(id); });
    }
Exemplo n.º 2
0
#pragma warning restore

    public void Init(Sprite img, int id, string name, double cost, string info, double value, StaticValue.OneIntParameter callback)
    {
        mItemImg.sprite = img;

        mNameText.text = name;
        mCostText.text = "Cost : " + cost.ToString();
        mInfoText.text = string.Format(info, value);

        mBuyButton.onClick.AddListener(() => callback(id));
    }
Exemplo n.º 3
0
#pragma warning restore

    public void Init(Sprite img, int id, string name, int number, string info, double value, StaticValue.OneIntParameter callback)
    {
        mItemImg.sprite = img;

        mNameText.text   = name;
        mNumberText.text = "남은 수량 : " + number.ToString();
        mInfoText.text   = string.Format(info, value);

        mApplyButton.onClick.AddListener(() => callback(id));
    }
Exemplo n.º 4
0
#pragma warning restore

    public void Init(int id, string name, double hpcurrent, double hpmax, double atk, double def, double heal, StaticValue.OneIntParameter callback)
    {
        mNameText.text = name;
        mHPText.text   = "HP : " + string.Format("{0}/{1}", UnitBuilder.GetUnitStr(hpcurrent), UnitBuilder.GetUnitStr(hpmax));
        mAtkText.text  = "Atk : " + UnitBuilder.GetUnitStr(atk);
        mDefText.text  = "Def : " + UnitBuilder.GetUnitStr(def);
        mHealText.text = "Heal : " + UnitBuilder.GetUnitStr(heal);

        mApplyButton.onClick.AddListener(() => { callback(id); });
    }