public static void Init()
{
if (instance != null) {
instance.Show ();
return;
} else {
instance = (TestWindow)EditorWindow.GetWindow (typeof(TestWindow), false, "Test Window");
instance.wantsMouseMove = true;
instance.Show ();
instance.position = new Rect (50, 50, 400, 30);
}
}