Skip to main content

GDTKItemStatSource.AddContributingStat

Declaration#

public void AddContributingStat(GDTKItemStat stat)

Parameters#

NameDescription
statStat to add to contribution list

Description#

Add an external contributing stat

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void Example(GDTKItemStatSource target, GDTKItemStat other)    {        target.AddContributingStat(other);    }
}

Declaration#

public void AddContributingStat(GDTKStatProxy stat)

Parameters#

NameDescription
statStat to add to contribution list

Description#

Add an external contributing stat

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(GDTKItemStatSource target, GDTKItemStatSource other)    {        target.AddContributingStat(other.GetStat(other.statIds[0]));    }
}