Ejemplo n.º 1
0
        private static void AddIcons(bool useIconCategory, Manager.Resources.ItemIconTables.IconCategory iconCategory)
        {
            if (useIconCategory && iconCategory != Manager.Resources.ItemIconTables.IconCategory.Item)
            {
                return;
            }

            Dictionary <int, Sprite> ActorIconTable = Singleton <Manager.Resources> .Instance.itemIconTables.ActorIconTable;

            if (ActorIconTable.Count >= girlCount + 2 || !ActorIconTable.ContainsKey(defaultGirlCount - 1))
            {
                return;
            }

            for (int i = 0; i < girlCount + 2; i++)
            {
                if (i < defaultGirlCount || ActorIconTable.Count >= girlCount + 2)
                {
                    continue;
                }

                ActorIconTable.Add(ActorIconTable.Count - 2, Instantiate(ActorIconTable[defaultGirlCount - 1]));
            }
        }
Ejemplo n.º 2
0
 public static void ItemIconTables_LoadIcon_AddIcons(Manager.Resources.ItemIconTables.IconCategory iconCategory) => AddIcons(true, iconCategory);