void Awake() { if (dataSerializerScript == null) { DontDestroyOnLoad(gameObject); dataSerializerScript = this; } else if (dataSerializerScript != this) { Destroy(gameObject); } }
void Awake() { if (dataSerializerScript == null) { DontDestroyOnLoad (gameObject); dataSerializerScript = this; } else if (dataSerializerScript != this) { Destroy(gameObject); } }