本文整理汇总了C#中Buff.getBuffType方法的典型用法代码示例。如果您正苦于以下问题:C# Buff.getBuffType方法的具体用法?C# Buff.getBuffType怎么用?C# Buff.getBuffType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Buff
的用法示例。
在下文中一共展示了Buff.getBuffType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addToBuffs
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;
}
}
示例2: addToBuffs
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;
}
}
示例3: addToBuffs
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;
}
}
示例4: showDescription
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);
}