This weeks goal of creating a turn system was met with success. It was a bit convoluted, but I realized that I needed to make a single script that could be used on both the Units since both players are playing. So I took the two scripts from before and put them onto two different colliders and made them communicate different numbers based on whose turn it was. It mostly worked but for some reason player 2 was having trouble communicating its values, and I think it was just a minor translation that was causing it to not reach the collider. I will debug it for next week. The next step is to have some simple UI displaying the Unit stats and turn number, and making a limited amount of turns for a player to move.
Documentation
0 Comments
Leave a Reply. |