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 )); }
//---------- // Use this for initialization void Start() { Jogador = GameObject.FindGameObjectWithTag("Player").GetComponent <Eran>(); Escudos = GameObject.FindGameObjectWithTag("Reflect"); if (Escudos != null) { Escudos.SetActive(false); } }