Adım 4: Ofseti bir Vector3 değişkenine dönüştürün

Kameranın konumunu düzelttik, ancak daha sonra değiştirmek isteyebiliriz! Ofsete erişmek için daha kolay bir yola ihtiyacımız var.

  • FollowPlayer.cs dosyasının en üstünde, private Vector3 offset ‘ibildirin;

-new Vector3() kodunu kopyalayın ve bu değişkene atayın

  • Orijinal kodu ofsfet değişkeniyle değiştirin
  • Test edin ve kaydedin

figures

Lesson discussion

Swap insights and ask questions about Unity Junior Programmer

Be the first to start the discussion

Ask a question or share your thoughts about this lesson.