public int GetID(int id) { // check old id and update timestamp if(id >= 0 && list.ContainsKey(id)) { list[id] = Time.time; } // get new id else { id = this.freeID; this.freeID++; this.list.Add(id, Time.time); } return id; }