// --- SET ---- private List <BehaviorTypes.LastSeen> BuildObjectMemory() { List <BehaviorTypes.LastSeen> newMemory = new List <BehaviorTypes.LastSeen>(); List <GameObject> objectsInMemory = GenericHelper.FindObjectsInLayer(9); foreach (GameObject obj in objectsInMemory) { newMemory.Add(new BehaviorTypes.LastSeen(obj, Time.time)); } return(newMemory); }