I want to changet the Smooth Follow script whit current target to Next target With Smooth.How to do that?
Well this answer is for anyone else who every finds this question in the future as it’s probably too late for the OP. Basically, you can’t access the component Smooth Follow as it’s script extension not a MonoBehaviour or class, so if you want to use the Out of Box script and not change it which is a good idea for maintenance reasons then:
- Use just 1 FollowTarget Transform and don’t change it, create FollowTarget as a new empty Game Object and set all it’s values to 0 transform values.
- Then do this in script at runtime when wanting to change the target to follow - FollowTarget.transform.parent = NewTarget.transform