예제 #1
0
        private void ApplyRecipes()
        {
            if (this._recipes == null)
            {
                return;
            }

            CraftData.LinkEntries(this._newRecipes, "Unknown");
            CraftData.mRecipesForSet.First().Value.AddRange(this._newRecipes);

            foreach (var newRecipe in this._newRecipes)
            {
                CraftData.mCraftCategoryDic[newRecipe.Category].recipes.Add(newRecipe);
            }

#if DEBUG
            Debug.LogError($"{this._newRecipes.Count} new recipes added.");
#endif

            this._newRecipes.Clear();
            this._recipes.Clear();
            this._newRecipes = null;
            this._recipes    = null;
        }