void Start() { if (partName == null || partName == "") { partName = gameObject.name; } foreach (PartConnection c in connections) { c.fromPart = this; } RecalcConnections(); if (debug_showConnectToOrigin) { PartConnection.IsConnectedToPart(this, GetBodyOrigin(), true); } }
public bool CheckConnectedToOrigin() { return(PartConnection.IsConnectedToPart(this, GetBodyOrigin())); }