Question by
chold39 · Jul 09, 2018 at 08:24 AM ·
textscore system
How to add a tally system to a Tic Tac Toe game
I have create the simple tic tac toe game in the Unity tutorials, However i wish to add a counter for X and O. For example when X wins the (X counter) will go to 1 displaying he has won the game onces, and if the O wins the same happens on the (O Counter) i want these counters to be able to keep going up each time the respective side wins. How can i do this?
I have made Texts, so that i can display the count however im not sure how i can code it so that each time a winningSide(X) wins the x counter goes up and the same for Y.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612170325im_/https://answers.unity.com/themes/thub/images/avi.jpg)