public override void Reset(Reflex reflex) { senseSet.Clear(); int terrainCount = reflex.Data.GetFilterCountByType(typeof(TerrainFilter)); if (terrainCount > 0 && terrainSensor == null) { terrainSensor = new TerrainSensor(); } else if (terrainCount == 0) { terrainSensor = null; } base.Reset(reflex); }
public override void Reset(Reflex reflex) { heardSet.Clear(); base.Reset(reflex); }