Hello! My code is responsible for clicks, I click on a button and a cross or zero (tic-tac-toe) appears in this place, but I get an error:
FormatException: Input string was not in a correct format.
System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) (at <1f66344f2f89470293d8b67d71308c07>:0)
System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) (at <1f66344f2f89470293d8b67d71308c07>:0)
System.Int32.Parse (System.String s) (at <1f66344f2f89470293d8b67d71308c07>:0)
ClickLogicMedium6x6.OnMouseDown () (at Assets/Scripts/XO/ClickLogicMedium6x6.cs:19)
UnityEngine.SendMouseEvents: DoSendMouseEvents(Int32)
Код