示例#1
0
 /// <summary>
 /// Initializes the logic by passing information required by the logic
 /// </summary>
 /// <param name="parent">The parent (equal to this.gameobject in this case)</param>
 /// <param name="screws">The array of screws this logic is responsible for</param>
 /// <param name="screwablePart">The ScrewablePartV2 object that created this logic object</param>
 internal void Init(GameObject parent, ScrewV2[] screws, ScrewablePartV2 screwablePart)
 {
     screwMaterial      = ScrewablePartV2Mod.material;
     screwSound         = ScrewablePartV2Mod.soundClip;
     this.parent        = parent;
     this.screws        = screws;
     this.screwablePart = screwablePart;
 }
示例#2
0
 /// <summary>
 /// Constructor for base info class
 /// </summary>
 /// <param name="savePath">path to screws save</param>
 /// <param name="showScrewSize">Should the screw size be shown to the user</param>
 public ScrewablePartV2BaseInfo(string savePath, bool showScrewSize)
 {
     save = ScrewablePartV2.LoadSave(savePath);
     this.showScrewSize = showScrewSize;
 }