private void OnDestroy() { if (Instance == this) { Instance = null; } }
public static void Init() { BGSDKManagerWindow window = EditorWindow.GetWindow <BGSDKManagerWindow>("BGSDK Manager", new Type[] { typeof(UnityEditor.SceneView) }); if (BGSDKSettings.user == null) { BGSDKSettings.user = new Identity(); } cooroutines = new List <IEnumerator>(); window.Show(); EditorApplication.update += window.EditorUpdate; window.wordWrapTextField = new GUIStyle(EditorStyles.textField); window.wordWrapTextField.wordWrap = true; }
public BGSDKManagerWindow() { Instance = this; }