예제 #1
0
    void UnlockMap()
    {
        int newMap = _userData.Level;

        map.UnlockMap(newMap, () => {
            // Reset new level
            _userData.NewLevel = false;

            // Set current map
            _userData.Map = newMap;

            // Set selected map
            _selectedMap = newMap;

            Invoke("UnlockMapCallback", mapInfoDelay);
        });
    }