Ejemplo n.º 1
0
        protected void LogComponents(Type type, Func <Type, Component[]> func, string message = "Loop through components")
        {
            string methodName = new StackTrace().GetFrame(1).GetMethod().Name;

            MoreCombatChips.Log($"{GetType().Name}.{methodName}: {message}.");
            foreach (var child in func(type))
            {
                MoreCombatChips.Log($"- {child.GetType().Name} : {child.name}");
            }
        }
Ejemplo n.º 2
0
        public void Register()
        {
            combatChip.OnUse += Action;
            combatChip.Register(KeyName);
            MoreCombatChips.Log($"Registered Chip: {combatChip.Name} with ID {combatChip.GetID()}");

            ModdedChip thisChip = new ModdedChip(combatChip);

            StoreExtraDetails(ref thisChip);
            MoreCombatChips.ModdedChipsList.Add(thisChip);

            AddRequiredResources();
        }