public TTTGame(ITTTSystemGUI _SystemGUI) { SystemGUI = _SystemGUI; tttModel = new TTTModel(this); tttView = new TTTView(this); tttControl = new TTTControl(this); tttModel.Init(); tttView.Init(); tttControl.Init(); tttControl.Reset(); }
private void OnTTTShowed(TTTView view) { this.view = view; // Init Button view.OnOnePlayerButtonAction = EnterOnePlayerMode; view.OnTwoPlayerButtonAction = EnterTwoPlayerMode; view.OnBackButtonAction = OnBackClick; clickAbleList = new List <UISelectable>(); currentPlayer = Player.Player1; InitGameArea(); // Init GamePanel InitGamePanel(); }