void Awake() { Map = FindObjectOfType <Generator>(); Tr = transform; Tr.SetParent(Map.Transform); Finder = new Finder(this); ID = globalID++; name = "Creature " + ID; Gender = nextGender = nextGender == GenderType.Boy ? GenderType.Girl : GenderType.Boy; Rb = GetComponent <Rigidbody>(); PregnantPanel = GetComponentInChildren <PregnantPanel>(); BoxCol = GetComponent <BoxCollider>(); }