void Start() { if (system == null) { system = GetComponentInParent <SkillSystem> (); } weights = new float[system.numberOfTraits]; for (int i = 0; i < weights.Length; i++) { weights [i] = system.randomValue; } }
void Reset() { system = GetComponentInParent <SkillSystem> (); var added = GetComponentsInChildren <Node> (); for (int i = 0; i < added.Length; i++) { if (added[i] != null && added[i] != this) { Destroy(this); return; } } }
void Reset() { system = GetComponentInParent <SkillSystem> (); }