unity do not destroy on scene load code example
Example: unity clone don't destroy on scene load
private static Player playerInstance;
void Awake(){
DontDestroyOnLoad (this);
if (playerInstance == null) {
playerInstance = this;
}
else {
DestroyObject(gameObject);
}
}