Exemple #1
0
 /// <summary>
 /// This loads the current (either loaded save or empty information about the screw into the MonoBehaviour class.
 /// This is needed so that the MonoBehaviour can work independet from the main class.
 /// </summary>
 /// <param name="screws">This is the screws save where all the information for a part is stored</param>
 /// <param name="screw_material">The screw material</param>
 /// <param name="screw_soundClip">The soundclip to be played when screwing in/out</param>
 /// <param name="parentGameObject">The parent gameObject</param>
 /// <param name="parentGameObjectCollider">The parent gameObjects collider</param>
 /// <param name="screwablePart">The screwable part object</param>
 public void SetSavedInformation(Screws screws, Material screw_material, AudioClip screw_soundClip, GameObject parentGameObject, Collider parentGameObjectCollider, ScrewablePart screwablePart)
 {
     this.screwablePart            = screwablePart;
     this.screws                   = screws;
     this.screw_material           = screw_material;
     this.screw_soundClip          = screw_soundClip;
     this.parentGameObject         = parentGameObject;
     this.parentGameObjectCollider = parentGameObjectCollider;
 }
Exemple #2
0
 void Init(ScrewablePart api)
 {
     this.api = api;
 }