Hide NRE warning in Rider

its terrible but I've never seen it NRE so 🤷‍♂️
hotfix
Andrew Cassidy 2 years ago
parent 495441be06
commit ba6676b625

@ -62,6 +62,8 @@ namespace ConformalDecals {
// Button for selecting a flag
// This is a bit of a hack to bring up the stock flag selection menu
// When its done, it calls OnCustomFlagSelected()
// ReSharper disable once PossibleNullReferenceException
var flagBrowser = (Instantiate((Object) (new FlagBrowserGUIButton(null, null, null, null)).FlagBrowserPrefab) as GameObject).GetComponent<FlagBrowser>();
flagBrowser.OnFlagSelected = OnCustomFlagSelected;
}

Loading…
Cancel
Save