コード例 #1
0
    public void AddBuff(ScriptableBuff scriptableBuff)
    {
        Buff buff = scriptableBuff.InitializeBuff(gameObject);

        buff.Activate();
        activeBuffs.Add(buff);
    }
コード例 #2
0
    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);
    }
コード例 #3
0
    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);
    }