public static EF_Input_Popup InitInputPopup() { EF_Input_Popup win = ScriptableObject.CreateInstance <EF_Input_Popup>(); win.position = new Rect(Screen.width / 2f, Screen.height / 2f, 250f, 150f); win.ShowPopup(); return(win); }
/// <summary> /// Creates a new input. /// </summary> /// <returns>The new input.</returns> public static void CreateNewInput(EF_Input_Scheme inputScheme) { EF_Input_Popup win = EF_Input_Popup.InitInputPopup(); win.OnComplete += inputScheme.AddInput; }