Example #1
0
    public bool Create(GameLogic.game_LoadSceneInfo info)
    {
        m_Offset = new UnityEngine.Vector3(info.fOffx, info.fOffy, info.fOffz);

        int[] grid = new int[2];
        grid[0] = info.nXAxisLen / MapFinderManager.DEFAULT_GRID_SIZE + 1;
        grid[1] = info.nZAxisLen / MapFinderManager.DEFAULT_GRID_SIZE + 1;

        m_gridTree = new GridTree();
        m_gridTree.create(UnityEngine.Vector3.zero, grid, MapFinderManager.DEFAULT_GRID_SIZE);

        return(true);
    }