Hide NRE warning in Rider

its terrible but I've never seen it NRE so 🤷‍♂️
This commit is contained in:
Andrew Cassidy 2022-03-05 23:44:59 -08:00
parent 495441be06
commit ba6676b625

View File

@ -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;
}