Beispiel #1
0
    public static bool LoadCategory(GameStringCategory cat)
    {
        if (s_tables.ContainsKey(cat))
        {
            Debug.LogWarning(string.Format("GameStrings.LoadCategory() - {0} is already loaded", cat));
            return(false);
        }
        GameStringTable table = new GameStringTable();

        if (!table.Load(cat))
        {
            Debug.LogError(string.Format("GameStrings.LoadCategory() - {0} failed to load", cat));
            return(false);
        }
        if (ApplicationMgr.IsInternal())
        {
            CheckConflicts(table);
        }
        s_tables.Add(cat, table);
        return(true);
    }