I have a level in which I use a list called “clones” when I run each scene separately it works fine but when going from one to the other I noticed that it stores the list from the last scene… is there a way to simply reset the list? in void Start?
The function you are looking for is NameOfYourList.Clear()
please check is your game object which has script, it has DontDestroyOnLoad() in awake method??
As Tripleganger mentioned in his comment.
Your list is static, it should not be.
private List<Transform> clones;
void Start()
{
clones = new List<Transform>();
clones.Add(Instantiate(Original, Spawner.position, Quaternion.identity) );
UpdateMainPlayer();
}
This should do the trick.