Пример #1
0
    public void OnPlayerDecideFormation()
    {
        playerController.ResetChoosenUnits();
        boardBehaviour.ResetCells();
        // Center the camera in the player board
        BoardData boardData = BoardData.Get();
        Vector3   playerCenterCellPosition = boardBehaviour.GetWorldPositionOfCell(boardData.GetPlayerCellsCenterCell());

        cameraBehaviour.CenterToPosition(playerCenterCellPosition);

        // Hide all cells but player's
        HideCells();
    }