private void OnDestroy() { if (Instance == this) { Instance = null; } }
void Awake() { if (Instance == null) { Instance = this; RandomizeData(); } else { Destroy(this); } }