private void Start() { if (data == null) { data = FindObjectOfType <GauntletData>(); } if (controller == null) { controller = FindObjectOfType <GauntletController>(); } if (view == null) { view = FindObjectOfType <GauntletView>(); } }
public static GauntletView CreateGauntletView(GauntletMovie gauntletMovie, GauntletView parent, Widget target) { try { var flags = BindingFlags.NonPublic | BindingFlags.Instance; var contructor = typeof(GauntletView).GetConstructors(flags)?.First(); var view = contructor?.Invoke(new object[] { gauntletMovie, parent, target }) as GauntletView; return(view); } catch (Exception ex) { LogException("CreateGauntletView", ex); } return(null); }