Exemplo n.º 1
0
    private void RegenerateMaps()
    {
        GameManager.Instance.gameState.SetLevel(GameManager.Instance.gameState.floorNumber + 1);

        this.GenerateMapsFromIndex(false);
        BasicMap nextMap = this.nextMapsToAdd.Dequeue();

        nextMap.PositionRelativeTo(this.activeMaps[this.activeMaps.Count - 1].transform.position);
        nextMap.gameObject.SetActive(true);
        this.activeMaps.Add(nextMap);
        this.curMapIndex = 0;
        this.SetTopBarFromMaps();
        GameManager.Instance.gameController.topBar.SetLevelIconHighlight(curMapIndex);
    }
Exemplo n.º 2
0
    private void OnLoadNextMap(BasicMap map)
    {
        if (this.nextMapsToAdd.Count == 0)
        {
            return;
        }

        //randMapIndex = 1;
        BasicMap newMap = this.nextMapsToAdd.Dequeue();

        newMap.PositionRelativeTo(map.transform.position);
        newMap.gameObject.SetActive(true);
        this.activeMaps.Add(newMap);
    }