Esempio n. 1
0
    public void Insert(GameObjData data)
    {
        if (!BoundUtils.Constains(bound, data.position))
        {
            return;
        }

        if (gameObjs == null)
        {
            gameObjs = new List <GameObjData>();
        }
        gameObjs.Add(data);
    }
Esempio n. 2
0
    public void Insert(GameObjData data)
    {
        if (!BoundUtils.Constains(bound, data.position))
        {
            return;
        }

        if (childs == null)
        {
            CreateChild();
        }
        foreach (var child in childs)
        {
            child.Insert(data);
        }
    }