コード例 #1
0
    public void showDescription(Buff buff) {
        this.buff = buff;
        BuffType buffType = buff.getBuffType();
        nameValue.text = buffType.getName();

        stat_2.text = "";
		stat_1.text = buffType.getEffectName().Replace("?", buff.getEffectValue().ToString());
        
        body.localPosition = bodyPosStat_1;
        description.transform.localPosition = descriptPos_1;

        quality.gameObject.SetActive(false);

		description.text = buff.getDescription();
		costText.text = buff.getCost().ToString();
		stretchBody();
		setActionMsgForBuff(buff);
        onScreen = true;
        Update();
        gameObject.SetActive(true);
    }