private void OnDestroy() { ShowPanel(Panel.None); if (Instance != this) { return; } Instance = null; }
private void Awake() { if (Instance != null) { Debug.LogError("More than one ConnectionAuthority is present in the scene!"); return; } Instance = this; ShowConnectionList(); }