I have the mainCamera in the game and I have attached the smoothfollow script to it.
I instantiate the gameobject when the game starts dynamically that I want the camera to follow so I can't set the target in the inspector.
After I instantiate the gameobject what is my syntax in javascript to assign the gameobject I just instantiated to the mainCamera's smoothfollow script?