My code is to change the target variable of the smoothfollow js script to the newly spawned gameobject in my c# init program. Someone recommended this code? But it seems to hate me?
GameObject objectwithscript;
Component followscript;
objectwithscript = GameObject.Find("Camera");
followscript = objectwithscript.GetComponent("SmoothFollow");
followscript.Target = Localhostplayer.transform;
Roberthu produced a lovely script. But that then also produced errors. The scripts name in the inspector is “Smooth Follow” but the script file name SmoothFollow.js? The error I get is: Type “SmoothFollow” does not contain a defination for ‘Target’ and no extension method? Heeeeelp?