Connection Point - GeoPlayerRu/PixPhys-Unofficial-Wiki GitHub Wiki
Connection System
> Part ofGeneral
SetValue(object _value)
This is used for setting value of connection point. _value is anything you want, but I recomend you to keep it within ConnectionDataType.
DisconnectAll()
Just disconects any connection from connectionpoint
Connect(int ConnectionID)
I think this is for connection between connections (by the way, this returns bool)
GetConnection(ConnectionPoint point)
Returns ConnectionData from connections
Constains(CollisionPoint point)
Idk
HUD
Variables (all variables are readOnly)
Render
- SpriteRenderer of connectionPoint.
Collider
- CircleCollider of connectionPoint.
Point
- connectionpoint itself.
ActiveSelf
- Idk
Functions
HUD(SpriteRenderer render, CircleCollider2D collider, ConnectionPoint point)
Sets all variables and sets active hud. (Constructor)
SetActive(bool _bool)
Activates or deactivates connectionPoint
Update()
Updates state of ConnectionPoin HUD
UpdateSize()
Idk
GlobalSetActive(bool _bool)
Activates or deactivates all connectionPoints.
ConnectionData (Under Construction)
Variables (ReadOnly)
Point_1
IdPoint_1
Point_2
Render
MaxDistance
Functions
ConnectionData(ConnectionPoint point_1, ConnectionPoint point_2, LineRenderer render)
Class constructor.
Disconnect()