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