void Awake() { if(instance == null) { instance = this; } else { Destroy(this); } }
static void Init() { DetectLeaks window = (DetectLeaks)EditorWindow.GetWindow(typeof(DetectLeaks)); window.Show(); }