本文整理匯總了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);
}