Why not use SerializeField of target?

if we find the target in start then everything works fine and we can see our weapon(Tower canon) can rotate towards our target. But if we SerializeField our target and instead of finding the target in the start we drag and drop target in the inspector it suppose to work because we find our target tranform but it’s not working and weapon is not rotating towards our target. Please Answer this Question.

Am i Doing Something wrong?..

Hi,

What do you mean by “it’s not working”? Which object did you assign to the fields? Make sure the object is in your Hierarchy, not in your Assets folder because the things in the Assets folder do not exist in the scene.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms