Exemple #1
0
        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);
        }
Exemple #2
0
 public override void Reset(Reflex reflex)
 {
     heardSet.Clear();
     base.Reset(reflex);
 }