コード例 #1
0
        public string GetPrevMoveEran()
        {
            if (Plies <= FirstPly)
            {
                return(null);
            }

            var e = BoardHistory.Prev();

            if (e == null)
            {
                return(null);
            }

            var move = BoardHistory.Current().Move;

            if (move == null)
            {
                return(null);
            }

            return(Eran.MakeFromBoardAndMove(
                       new ChessGame(e.GCD),
                       move
                       ));
        }
コード例 #2
0
 //----------
 // Use this for initialization
 void Start()
 {
     Jogador = GameObject.FindGameObjectWithTag("Player").GetComponent <Eran>();
     Escudos = GameObject.FindGameObjectWithTag("Reflect");
     if (Escudos != null)
     {
         Escudos.SetActive(false);
     }
 }