Ejemplo n.º 1
0
	public override void addToBuffs (Buff buff) {
		base.addToBuffs(buff);
		switch (buff.getBuffType()) {
			case BuffType.POISON_DAMAGE: poisonDamage.gameObject.SetActive(true); break;
			case BuffType.FASTER_ATTACK: fasterAttack.gameObject.SetActive(true); break;
			default: Debug.Log("Unknown Buff Type"); break;
		}
	}
Ejemplo n.º 2
0
	public override void addToBuffs (Buff buff) {
		base.addToBuffs(buff);
		switch (buff.getBuffType()) {
			case BuffType.ANTI_POISON: antiPoison.gameObject.SetActive(true); break;
			case BuffType.EXTRA_HEALTH: extraHealth.gameObject.SetActive(true); break;
			case BuffType.REGENERATION: regeneration.gameObject.SetActive(true); break;
			default: Debug.Log("Unknown Buff Type"); break;
		}
	}
Ejemplo n.º 3
0
	public override void addToBuffs (Buff buff) {
		base.addToBuffs(buff);
		switch (buff.getBuffType()) {
			case BuffType.PROTECTION_AIR: protectionAir.gameObject.SetActive(true); break;
			case BuffType.PROTECTION_DARK: protectionDark.gameObject.SetActive(true); break;
			case BuffType.PROTECTION_EARTH: protectionEarth.gameObject.SetActive(true); break;
			case BuffType.PROTECTION_FIRE: protectionFire.gameObject.SetActive(true); break;
			case BuffType.PROTECTION_LIGHT: protectionLight.gameObject.SetActive(true); break;
			case BuffType.PROTECTION_WATER: protectionWater.gameObject.SetActive(true); break;
			default: Debug.Log("Unknown Buff Type"); break;
		}
	}
Ejemplo n.º 4
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);
    }