-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(NetworkManagerGUI): prevent potential NRE spam if reference is lo…
…st and tidy up (#1130) * Add autoconfiguration bool option with tooltip * System define and Awake function implementation * Short-circuit to prevent NREs Somehow NMGUI can lose references for some reason, so short-circuit to prevent log spam. * update comment * apply Visual Studio IDE0048 recommendation "Add parentheses for clarity" * Regions for tidying up * Throw warning if trying to Auto Configure but NM field is set If auto configure is set but NetworkManager field is not null, then don't do anything. * possible future todo * Update NetworkManagerGUI.cs Remove regions as per James request * fix ups as suggested by James' review
- Loading branch information
1 parent
8a5cb91
commit 86b5c3d
Showing
1 changed file
with
58 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters