public void AddDanger(Vector3 position, float amount)
        {
            List <SimpleAIMemory.SeenInfo> all = this.All;

            SimpleAIMemory.SeenInfo seenInfo = new SimpleAIMemory.SeenInfo()
            {
                Position  = position,
                Timestamp = Time.realtimeSinceStartup,
                Danger    = amount
            };
            all.Add(seenInfo);
        }
 public void Update(BaseEntity ent)
 {
     for (int index = 0; index < this.All.Count; ++index)
     {
         if (Object.op_Equality((Object)this.All[index].Entity, (Object)ent))
         {
             SimpleAIMemory.SeenInfo seenInfo = this.All[index];
             seenInfo.Position  = ((Component)ent).get_transform().get_position();
             seenInfo.Timestamp = Mathf.Max(Time.get_realtimeSinceStartup(), seenInfo.Timestamp);
             this.All[index]    = seenInfo;
             return;
         }
     }
     this.All.Add(new SimpleAIMemory.SeenInfo()
     {
         Entity    = ent,
         Position  = ((Component)ent).get_transform().get_position(),
         Timestamp = Time.get_realtimeSinceStartup()
     });
     this.Visible.Add(ent);
 }
        public void Update(BaseEntity ent)
        {
            for (int i = 0; i < this.All.Count; i++)
            {
                if (this.All[i].Entity == ent)
                {
                    SimpleAIMemory.SeenInfo item = this.All[i];
                    item.Position  = ent.transform.position;
                    item.Timestamp = Mathf.Max(Time.realtimeSinceStartup, item.Timestamp);
                    this.All[i]    = item;
                    return;
                }
            }
            List <SimpleAIMemory.SeenInfo> all = this.All;

            SimpleAIMemory.SeenInfo seenInfo = new SimpleAIMemory.SeenInfo()
            {
                Entity    = ent,
                Position  = ent.transform.position,
                Timestamp = Time.realtimeSinceStartup
            };
            all.Add(seenInfo);
            this.Visible.Add(ent);
        }