public void StartIntro() { var valuableItemsPositions = FindObjectsOfType <ValuableItem>().Select(q => (Vector2)q.transform.position).ToList(); this.cameraMovement = new IntroCameraMovements(transform, cameraConfig.IntroSmoothness, cameraConfig.OffsetZ, valuableItemsPositions, cameraConfig.IntroDurationOnValuableObject, this.StartGame); }
public void StartGame() { this.cameraMovement = new GameCameraMovements(transform, cameraConfig.Smoothness, cameraConfig.OffsetZ, this.playerTransform); }
private void Start() { CameraManager.Instance = this; this.cameraMovement = new InitialCameraMovements(transform, cameraConfig.Smoothness, cameraConfig.OffsetZ, cameraConfig.IntroStartPosition); }