void OnClickClose() { bool allApplied = IsAllApplied(); if (allApplied) { Close(); } else { if (AppID == "") { PXR_PlatformSetting.Instance.startTimeEntitlementCheck = false; } PXR_SettingMessageBoxEditor.Init(language); } }
public static void Init(Language language) { PXR_SettingMessageBoxEditor.language = language; myWindow = (PXR_SettingMessageBoxEditor)GetWindow(typeof(PXR_SettingMessageBoxEditor), true, strWindowName[(int)language], true); myWindow.autoRepaintOnSceneChange = true; myWindow.minSize = new Vector2(360, 200); myWindow.Show(true); Rect pos; if (PXR_SDKSettingEditor.window != null) { Rect frect = PXR_SDKSettingEditor.window.position; pos = new Rect(frect.x + 300, frect.y + 200, 200, 140); } else { pos = new Rect(700, 400, 200, 140); } myWindow.position = pos; }