public void UpdateConnections(UtilityConnections new_connections)
 {
     _connections = new_connections;
     if (connectionManager != null)
     {
         int cell = Grid.PosToCell(base.transform.GetPosition());
         connectionManager.SetConnections(new_connections, cell, isPhysicalBuilding);
     }
 }
    protected override void OnSpawn()
    {
        base.OnSpawn();
        connectionManager = ConnectionManager;
        int cell = Grid.PosToCell(base.transform.GetPosition());

        connectionManager.SetConnections(Connections, cell, isPhysicalBuilding);
        Building component = GetComponent <Building>();

        TileVisualizer.RefreshCell(cell, component.Def.TileLayer, component.Def.ReplacementLayer);
    }