SocketBehaviour Class

Namespace
EasyBuildSystem.Features.Scripts.Core.Base.Socket
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["SocketBehaviour"] class Type type-node

Syntax

[AddComponentMenu("Easy Build System/Features/Buildings Behaviour/Socket Behaviour")]
public class SocketBehaviour : MonoBehaviour

Attributes

Type Description
AddComponentMenu

Fields

Properties

Name Value Summary
CachedCollider Collider

Methods

Name Value Summary
AddOccupancy(PieceBehaviour) void
This method allows to add a occupancy on this socket.
AllowPiece(PieceBehaviour) bool
This method allows to check if the piece is contains in the offset list of this socket.
ChangeOccupancy(bool, PieceBehaviour) void
This method allows to change the current socket state.
CheckOccupancy(PieceBehaviour) bool
This method allows to check if the piece is placed on this socket.
DisableSocketCollider() void
This method allows to disable the collider of the socket.
EnableSocketCollider() void
This method allows to enable the collider of the socket.
GetOffset(PieceBehaviour) Offset
This method allows to get the piece offset wich allowed on this socket.
OnDrawGizmos() void
RemoveOccupancy(PieceBehaviour) void
This method allows to remove a occupancy from this socket.