Beispiel #1
0
    public void LoadByPath(string _path)
    {
        if (_sing == null)
        {
            _sing = FindObjectOfType <CubeGridSingletonObject>() as CubeGridSingletonObject;
        }

        CurrentLevel = _path;
        _sing.Grid.ClearDictionary();
        _sing.Grid = CubeGridXML.ToGrid(_path);
        GlobalOptions.Refresh();
    }
Beispiel #2
0
    public void LoadByIndex(int _index)
    {
        if (_sing == null)
        {
            _sing = FindObjectOfType <CubeGridSingletonObject>() as CubeGridSingletonObject;
        }

        CurrentLevel = LevelList[_index].path;

        _sing.Grid.ClearDictionary();
        _sing.Grid = CubeGridXML.ToGrid(CurrentLevel);
        GlobalOptions.Refresh();
    }