"Hey everyone! I'm hitting two stubborn bugs on my Rubik's Cube project and I'm stuck 😩. All my relevant code is in the GitHub Gist linked below."
1. 👻 Critical Issue: Instant Auto-Solve
"The game instantly solves the cube and progresses levels as soon as it loads. I believe my CubeController.IsSolved() function is being called in an Update() loop before my LevelManager coroutine finishes the scramble. I can't find the source of the early check!"
2. ⚠️ Prefab Reparenting Warnings
"I also get 'Setting the parent of a transform which resides in a Prefab Asset is disabled...' when the level loads. This happens during initialization in CubeController.Start() and during the layer rotation in RotateLayerCoroutine when I'm temporarily parenting pieces. Is there a better, more robust way to handle temporary reparenting of prefab instances in Unity?"
GitHub Gist (All Code Included):
https://gist.github.com/taizeamaron-lab/b0f67b7eca6fb1b6a07190d4be3c8c9c
I don't know cooding myself i used ai till now, i want few peoples to work along my project but since they will not join unless I have something to show. So I started this with AI.
"Thanks in advance for any eyes on this!"