Heya, Thank you for the feedback , destroying was the hardest part to implement as i couldn't figure out how to implement placed lines demolition i just worked a way around so that if you destroy any building which is connected it would destroy it's lines as well. I am sorry i should have wrote somewhere that you have to demolish the pylon or any other building to demolish the connection ,hope you had fun.
Viewing post in Power Manager jam comments
yes , they don’t have collision at all , under the hood i have a node class which is inherited by all the buildings , every frame i am just checking if the pointer is looking at node (which is a list ) if it is , spawn the preview line from that node and when you click on other building and if that is node as well “connect” and add that connection to the list.