How to do camera following an object with special tag without drag and drop into Inspector? I have 2 prefab model they are not into hierarchy for the moment when player start play. To load selected model into scene I'm using the below code.
public GameObject[] players;
void Start ()
{
LoadPlayer ();
}
private void LoadPlayer()
{
GameObject player =Instantiate(players[PlayerPrefs.GetInt(MyModel")]);
}
Because in other scene I can change my player model but I can't follow it using in c# script for camera public Transform cause of I can't drop it in that place in Inspector. So in what way I can find current player object when game start to follow it by camera?