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