Exemplo n.º 1
0
    public LevelProgress GetLevelProgress(string bundleId, string imageId)
    {
        var id = MakeId(bundleId, imageId);

        LevelProgress levelProgress = null;

        if (!m_levelProgressesMap.TryGetValue(id, out levelProgress))
        {
            levelProgress = LevelProgress.LoadOrCreate(bundleId, imageId);

            if (levelProgress != null)
            {
                m_levelProgressesMap.Add(id, levelProgress);
            }
        }

        return(levelProgress);
    }