public void Insert(GameObjData data) { if (!BoundUtils.Constains(bound, data.position)) { return; } if (gameObjs == null) { gameObjs = new List <GameObjData>(); } gameObjs.Add(data); }
public void Insert(GameObjData data) { if (!BoundUtils.Constains(bound, data.position)) { return; } if (childs == null) { CreateChild(); } foreach (var child in childs) { child.Insert(data); } }