Example #1
0
    //when click on a new game button. Declares a game end goes back to setup
    public void NewGame()
    {
        DisableControls();
#if UNITY_EDITOR
        //stop any coroutines that are running if using the debugger
        BoardStateTester.instance.StopAllCoroutines();
#endif
        GameDataRecorder.instance.AddPlayerMove(new Vector2Int(-2, -2));
        GameDataRecorder.instance.RecordGameFinish(0);
        GameDataRecorder.instance.ReportGame(GameDataRecorder.instance.MatchList.Count - 1);
        UIManager.BackToSetup();
    }