本文整理汇总了C#中Character.AddBuff方法的典型用法代码示例。如果您正苦于以下问题:C# Character.AddBuff方法的具体用法?C# Character.AddBuff怎么用?C# Character.AddBuff使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character
的用法示例。
在下文中一共展示了Character.AddBuff方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
protected override bool Init()
{
fenShen = owner.Clone();
fenShen.isFenShen = true;
fenShen.visible = false;
fenShen.EnableAntiDizzy();
fenShen.EnableAntiFanJi();
fenShen.EnableWuDi();
//fenShen.gameObject.SetActive(false);
NfFenShenEndBuff buff = new NfFenShenEndBuff();
buff.lv = lv;
fenShen.AddBuff(buff);
ChangeTexture();
PlaySelfEffect();
return true;
}
示例2: AddTbuff
public void AddTbuff(Character target)
{
if (skilldata.Tbuff.Equals("null") == false)
{
string str = skilldata.Tbuff;
if (str[0] == '[')
{
JsonData jsd = JsonMapper.ToObject(str);
for (int i = 0; i < jsd.Count; ++i)
{
int buffId = (int)jsd[i];
target.AddBuff(attacker, buffId, lv);
}
}
else
{
int buffId = int.Parse(str);
target.AddBuff(attacker, buffId, lv);
}
}
}
示例3: AddBuff
public void AddBuff(Character target, bool forever)
{
int buffLv = lv;
string strBuff = skilldata.Buff;
if (strBuff.Equals("null") == false)
{
if (strBuff[0] == '[')
{
JsonData jsd = JsonMapper.ToObject(strBuff);
for (int i = 0; i < jsd.Count; ++i)
{
int buffId = (int)jsd[i];
target.AddBuff(attacker, buffId, buffLv, forever);
}
}
else
{
int buffId = int.Parse(strBuff);
target.AddBuff(attacker, buffId, buffLv, forever);
}
}
}
示例4: Apply
public override void Apply(Character target)
{
target.AddBuff(aimModeSlow);
}