public void AddBuff(ScriptableBuff scriptableBuff) { Buff buff = scriptableBuff.InitializeBuff(gameObject); buff.Activate(); activeBuffs.Add(buff); }
private void applyAsheAA() { GameObject buff = GameObject.Find("Buffs"); ScriptableBuff ab = buff.GetComponent <Buffs>().getAAb(); AsheAABuff aab = (AsheAABuff)ab.InitializeBuff(player); player.GetComponent <BuffableEntity>().AddBuff(aab); }
private void applySlow(GameObject obj) { if (!frostOn) { return; } GameObject buff = GameObject.Find("Buffs"); ScriptableBuff sb = buff.GetComponent <Buffs>().getSlb(); SlowBuff slb = (SlowBuff)sb.InitializeBuff(obj); obj.GetComponent <BuffableEntity>().AddBuff(slb); }