ModifyStatISBPlugin.Apply
Declaration#
public virtual void Apply(GDTKItemSetBonus bonus, Inventory inventory)Parameters#
| Name | Description |
|---|---|
| bonus | Item Set Bonus containing plugin |
| inventory | Inventory hosting Item Set Bonus |
Description#
Apply this bonus
Usage#
Example
using NullSave.GDTK.Inventory;using UnityEngine;public class Example : MonoBehaviour{ public void ExampleMethod(GDTKItemSetBonus target, Inventory other) { foreach(var bonus in target.bonuses) { foreach (var plugin in bonus.plugins) { plugin.Apply(target, other); } } }}