public void SetupCamera(BGameManager manager, DCameraInfo cameraInfo) { // Inicializamos los valores en funcion de los datos rotateLeft = cameraInfo.rotateLeft; rotateRight = cameraInfo.rotateRight; moveUp = cameraInfo.moveUp; moveDown = cameraInfo.moveDown; moveLeft = cameraInfo.moveLeft; moveRight = cameraInfo.moveRight; cameraMoveSpeed = cameraInfo.cameraSpeed; cameraRotationTime = cameraInfo.rotationTime; cameraOrtoMax = cameraInfo.farZoomClamp; // Guardamos el target parentT = transform.parent; // Hacemos que la camara se centre en el target transform.LookAt(parentT); // Obtenemos el tablero BBoard board = manager.GetActiveBoard(); // Obtenemos los limites del tablero Vector4 aux = board.GetBoardLimits(); min1 = aux.x; max1 = aux.y; min2 = aux.z; max2 = aux.w; // Colocamos la camara con la posicion inicial parentT.position = board.GetPlayerSpawnPos(0f); parentT.rotation = board.GetPlayerSpawnRot(); // Obtenemos el sistema de coordenadas coordSys = board.GetCoordSys(); }