private void LoadNeeds() { Needs = new Need[PrototypeManager.Need.Count]; PrototypeManager.Need.Values.CopyTo(Needs, 0); for (int i = 0; i < PrototypeManager.Need.Count; i++) { Need need = Needs[i]; Needs[i] = need.Clone(); Needs[i].Character = this; } }
void LoadNeeds() { needs = new Need[World.current.needPrototypes.Count]; World.current.needPrototypes.Values.CopyTo(needs, 0); for (int i = 0; i < World.current.needPrototypes.Count; i++) { Need need = needs[i]; needs[i] = need.Clone(); needs[i].character = this; } }