-
Notifications
You must be signed in to change notification settings - Fork 16
DisassembleBehaviour
Tommo J. Phillips edited this page Oct 22, 2023
·
3 revisions
Namespace: TommoJProductions.ModApi.Attachable
public class DisassembleBehaviour : TommoJProductions.ModApi.Interactions.InteractionRaycastInheritance Object → Object → Component → Behaviour → MonoBehaviour → Interaction → InteractionRaycast → DisassembleBehaviour
public Part part;Represents the gui check.
public static bool guiCheck { get; }Represents the string to use.
public virtual string interactionString { get; }public bool useGUILayout { get; set; }public bool enabled { get; set; }public bool isActiveAndEnabled { get; }public Transform transform { get; }Transform
public GameObject gameObject { get; }GameObject
public string tag { get; set; }public string name { get; set; }public HideFlags hideFlags { get; set; }HideFlags
public DisassembleBehaviour()unityruntime on disable.
public virtual void OnDisable()Occurs when the player looks at this interaction.
public virtual void onInteractionUpdate()Occurs when the player was looking at this interaction but now isnt.
public virtual void onInteractionExit()Checks if the player is looking at a collider. (eg => parts collider). used for disassemble logic. if PartSettings.disassembleCollider does not equal , uses that collider, otherwise uses the parts collider.
protected virtual bool colliderCheck()