protected virtual void Awake() { m_self = GetComponentInChildren <Traits>() ?? GetComponentInParent <Traits>(); }
private void OnEnable() { m_traits = target as Traits; m_traits.FindResources(); SetupTraitList(); }
public void Assign(int factionID, bool inheritable, float[] traits) { this.factionID = factionID; this.inheritable = inheritable; Traits.Copy(traits, ref this.traits); }