Karakter destroy olunca bu hata geldi. Hataya çift tıklayınca maincamerayı gösterdi. Acaba main cameradaki C# dosyasının içinde "Player = gameobject. Find("Player").Transform;" kodu olduğu için mi böyle bir hata aldım ve bunu nasıl düzeltebilirim?
Hatanın tamamı:
Hatanın tamamı:
Kod:
MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Transform.get_position () (at <a9810827dce3444a8e5c4e9f3f5e0828>:0)
CameraFollow.LateUpdate () (at Assets/Scripts/CameraFollow.cs:28)