Ejemplo n.º 1
0
    public IEnumerator SwapActiveBoard(BBoard newBoard, bool playableLevel)
    {
        yield return(StartCoroutine(DisolveObjects()));

        // Terminamos el ultimo Board Activo
        activeBoard.EndBoard();

        activeBoard = newBoard;

        activeBoard.SetupBoard(this, playableLevel);

        UpdateActive(playableLevel);

        StartCoroutine(LoadObjects(playableLevel));

        yield return(null);
    }