public void ExportGame()
        {
            string pgn        = PGNCreator.CreatePGN(gameMoves.ToArray());
            string baseUrl    = "https://www.lichess.org/paste?pgn=";
            string escapedPGN = UnityEngine.Networking.UnityWebRequest.EscapeURL(pgn);
            string url        = baseUrl + escapedPGN;

            Application.OpenURL(url);
            TextEditor t = new TextEditor();

            t.text = pgn;
            t.SelectAll();
            t.Copy();
        }
Beispiel #2
0
        public void ExportGame()
        {
            var pgn        = PGNCreator.CreatePGN(gameMoves.ToArray());
            var baseUrl    = "https://www.lichess.org/paste?pgn=";
            var escapedPGN = UnityWebRequest.EscapeURL(pgn);
            var url        = baseUrl + escapedPGN;

            Application.OpenURL(url);
            var t = new TextEditor();

            t.text = pgn;
            t.SelectAll();
            t.Copy();
        }