public void RemoveObj(DungeonScene _this, int id) { var toRemoveList = (from obj in _this.mObjDict where obj.Value.TypeId == id select obj.Value).ToList(); foreach (var obj in toRemoveList) { _this.LeaveScene(obj); } }
public void RemoveObj(DungeonScene _this, int id) { var toRemoveList = (from obj in _this.mObjDict where obj.Value.TypeId == id select obj.Value).ToList(); foreach (var obj in toRemoveList) { _this.LeaveScene(obj); } }