public void StartGame(Action onGameLost, Action onGameWon) { _player1LegsController.ResetProgress(); _player2LegsController.ResetProgress(); _player1Board.DisplayText("", true); _player2Board.DisplayText("", true); _currentSequence = GetNextSequence(); _onGameLost = onGameLost; _onGameWon = onGameWon; StartCoroutine(StartGameCoroutine()); }
public void Start(Action <GameplaySequence> onFinish) { //NOT A MONOBEHAVIOUR START METHOD _currentScore = 0; _onFinish = onFinish; StartingBoard.DisplayText("", true); OtherBoard.DisplayText("", true); StartingBoard.Activate(null, false); GameplayBoard.BoardFinished += OnBoardFinished; _scoreDisplayer.ResetDisplayer(); Debug.Log("Starting sequence " + RequiredScore.ToString()); }
private IEnumerator DisplayBoardTextCoroutine(GameplayBoard board, string text, bool positive) { board.DisplayText(text, positive); yield return(new WaitForSeconds(2f)); }