Example #1
0
    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);
    }
Example #2
0
 public void StartGame()
 {
     this.cameraMovement = new GameCameraMovements(transform, cameraConfig.Smoothness, cameraConfig.OffsetZ, this.playerTransform);
 }
Example #3
0
 private void Start()
 {
     CameraManager.Instance = this;
     this.cameraMovement    = new InitialCameraMovements(transform, cameraConfig.Smoothness, cameraConfig.OffsetZ, cameraConfig.IntroStartPosition);
 }