Exemplo n.º 1
0
 private void CalculateGoalPosition()
 {
     if (scroll)
     {
         goalPosition = new Vector3(player.transform.position.x, player.transform.position.y, -distanceToPlane);
     }
     else
     {
         Vector3 currentStripPosition = currentStrip.GetPosition();
         goalPosition = new Vector3(currentStripPosition.x, currentStripPosition.y, -distanceToPlane);
     }
 }