예제 #1
0
    private void handleTurno()
    {
        // En caso que el totem del jugador actual no exceda la distancia desactivo su movimiento
        while (!totemActual.excedeLimiteDistancia())
        {
            actualizarDistancia();
            return;
        }

        Debug.Log("Intercambio turno");

        if (turnoJugador == TURNO_JUGADOR.SEGUNDO_JUGADOR)
        {
            estadoPartida = PARTIDA_STATE.FIN_RONDA;
        }
        else
        {
            intercambiarTurno();
        }

        turnCounter += 1;
    }