static void Init() { if (webRequestsMonoBehaviour == null) { var obj = new GameObject("WebRequests"); webRequestsMonoBehaviour = obj.AddComponent <WebRequestsMonoBehaviour>(); } }
private static WebRequestsMonoBehaviour MonoBehaviourRef() { if (webRequestsMonoBehaviour == null) { webRequestsMonoBehaviour = new GameObject("WebRequests").AddComponent <WebRequestsMonoBehaviour>(); } return(webRequestsMonoBehaviour); }
private static void Init() { if (webRequestsMonoBehaviour == null) { GameObject gameObject = new GameObject("WebRequests"); webRequestsMonoBehaviour = gameObject.AddComponent <WebRequestsMonoBehaviour>(); } }