//Przemieszczenie piona private void MovePawns(int x, int y) { if (allowedMoves[x, y]) { Pawns[selectedPawns.CurentX, selectedPawns.CurentY] = null; selectedPawns.transform.position = GetTitleCenter(x, y); selectedPawns.SetPosition(x, y); Pawns[x, y] = selectedPawns; isWhiteTure = !isWhiteTure; StartTime = Time.time; } BoardSquareLights.Instance.HidenSquareLights(); selectedPawns = null; }