private void Awake() { if (Instance != null) { Destroy(gameObject); return; } Instance = this; //TODO load from files }
void OnDestroy() { Instance = null; }