public static void Init(EHintType htype) { hintType = htype; myWindow = (Pvr_2DLoadingConfigureOkEditor)EditorWindow.GetWindow(typeof(Pvr_2DLoadingConfigureOkEditor), true, "Congratulations", true); myWindow.Show(true); Rect pos; if (Pvr_LoadingEditor.myWindow != null) { Rect frect = Pvr_LoadingEditor.myWindow.position; pos = new Rect(frect.x + 300, frect.y + 200, 200, 140); } else { pos = new Rect(700, 400, 200, 140); } myWindow.position = pos; }
void ShowHintInfo(EHintType etype) { EditorUtility.ClearProgressBar(); Pvr_2DLoadingConfigureOkEditor.Init(etype); }