private void Start() { if (Instance) { throw new NotSupportedException($"Only one {nameof(LostConnectionModal)} must be active at any time."); } Instance = this; }
private void OnDestroy() { Instance = null; }
private void Start() { if (Instance) { throw new NotSupportedException($"Only one {nameof(LostConnectionModal)} must be active at any time."); } Instance = this; }
private void OnDestroy() { Instance = null; }