public void checkEndGameCollectable(Vector2 positionCollectable) { StatusGame status = boardScript.checkEndGame(0, 1); if (status.Equals(StatusGame.VICTORY)) { StartCoroutine(doVictory(positionCollectable)); } }
public Boolean checkEndGameCommand() { StatusGame status = boardScript.checkEndGame(1, 0); levelManager.setTextCommands(boardScript.getCommandsRemaining()); if (status.Equals(StatusGame.DEFEAT)) { StartCoroutine(doDefeat(false)); return(true); } return(false); }