Skip to main content

PlayerWeightStat

A class in Root.Township, Alta.StatSystem.

Stat definition that mirrors the player's carried weight from PlayerWeight into a stat.

Constructors​

MemberWhat it is
PlayerWeightStat()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Methods​

MemberWhat it is
override void Applied(StatManager manager, Stat stat)Sets the stat's base to the new weight whenever PlayerWeight.WeightChanged fires on the entity's prefab root.