Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
 public bool CheckConnectedToOrigin()
 {
     return(PartConnection.IsConnectedToPart(this, GetBodyOrigin()));
 }