As promised, the complete translated C# code for the Tic Tac Toe game follows. There were a few tricky spots in the code that required a bit of tap dancing:
is translated like this in C#:
private bool CheckForWin(GameObject square)
In an earlier chapter, we dodged the requirements of the
waitForSeconds method and used a different function entirely. Now that we've had more experience with return statements, we can discuss what's required.
In C#, this line:
yield return new WaitForSeconds(3); ...