Thanks for playing!
I was inspired by the Wall Merge mechanic from The Legend of Zelda: Link Between Worlds, and I followed a video by Mix and Jam where they recreated that mechanic in Unity. From there, I imported it into my code and modified it to suit my needs. It's not 100 percent perfect, but it works well for the jam setting.