19 lines
664 B
Plaintext
19 lines
664 B
Plaintext
@startuml
|
|
class SnapSystem {
|
|
- {static} instance : SnapSystem
|
|
+ {static} getInstance() : SnapSystem
|
|
- socketDetectionRadius : float = 0.5f
|
|
- <<readonly>> nearbySockets : List<SocketPoint>
|
|
- <<readonly>> visitedRoots : HashSet<Transform>
|
|
- closestSocket : SocketPoint
|
|
- Awake() : void
|
|
+ UpdateSockets(detectionPoint:Vector3, ghostRoot:Transform) : void
|
|
+ ClearHighlights() : void
|
|
+ Clear() : void
|
|
+ GetNearbySockets() : List<SocketPoint>
|
|
+ GetClosestSocket() : SocketPoint
|
|
- {static} FindClosest(position:Vector3, sockets:List<SocketPoint>) : SocketPoint
|
|
}
|
|
MonoBehaviour <|-- SnapSystem
|
|
@enduml
|