Exemplo n.º 1
0
    /// <summary>
    /// USed by the dev button
    /// </summary>
    public void ForceUnlockAllLevels()
    {
        foreach (var item in worldsCreated)
        {
            if (item.GetInstanceID() != world_0_container.GetInstanceID())
            {
                Destroy(item.gameObject);
            }
        }

        worldsCreated = new List <WorldUI>();
        worldsCreated.Add(world_0_container);

        _lvlBtn_lastWorldId   = 0;
        _currentBuildingWorld = world_0_container;
        world_0_container.DeleteGridChildren();


        _amountOfWorlds = 1;
        mainMap.GetGameManager().User.LevelProgressManager.ForceWinAllLevels();
        mainMap.CreateLevelNodes();

        //_worldsCreated[_currentWorldOnScreen].gameObject.SetActive(true);
    }