Exemple #1
0
    public void StartCircledMatch()
    {
        var gameObj_MatchView = Init_();

        boardInitializer = gameObj_MatchView.AddComponent <CircledBoardInitializer>();
        matchController  = boardInitializer.InitializeBoard();
    }
Exemple #2
0
    public void StartLosAlamosMatch()
    {
        var gameObj_MatchView = Init_();

        boardInitializer = gameObj_MatchView.AddComponent <LosAlamosBoardInitializer>();
        matchController  = boardInitializer.InitializeBoard();
    }
Exemple #3
0
    public void StartCircledMatch(string s, List <BoardPosition> fromPositions, List <BoardPosition> toPositions)
    {
        InitStatics();
        var gameObj_MatchView = GameObject.Find(ChessConstants.MatchViewObjectName);

        if (gameObj_MatchView == null)
        {
            gameObj_MatchView = new GameObject(ChessConstants.MatchViewObjectName);
        }
        boardInitializer = gameObj_MatchView.AddComponent <CircledBoardInitializer>();
        matchController  = boardInitializer.InitializeBoard(s, fromPositions, toPositions);
    }