Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using UnityEngine;
- namespace Mach.Extensions
- {
- public static class PartExtensions
- {
- public static bool IsPrimary(this Part thisPart, List<Part> partsList, int moduleClassID)
- {
- foreach (Part part in partsList)
- {
- if (part.Modules.Contains(moduleClassID))
- {
- if (part == thisPart)
- return true;
- else
- break;
- }
- }
- return false;
- }
- }
- }
Add Comment
Please, Sign In to add comment