// for using already existing fragments (will be used for this tech if fragment own tech is unlocked) protected void setFragmentToUnlock(TechType fragTechType, int fragCount, float scanTime = 1f) { string fragTechID = ClassID + "_Fragment"; TechType substFragTechType = TechTypeHandler.AddTechType(fragTechID, "", ""); LanguageHelper.substituteString(fragTechID, fragTechType.AsString()); // use name from original fragment UnlockTechHelper.setFragmentTypeToUnlock(TechType, fragTechType, substFragTechType, fragCount, scanTime); }
protected void setAllTechTypesForUnlock(params TechType[] techTypes) => UnlockTechHelper.setAllTechTypesForUnlock(TechType, techTypes);