Ejemplo n.º 1
0
    public static void BuildGame()
    {
        ShowPopupExample window = ScriptableObject.CreateInstance <ShowPopupExample>();

        window.position = new Rect(Screen.width / 2, Screen.height / 2, 250, 150);
        window.ShowPopup();
    }
Ejemplo n.º 2
0
 public static void Init()
 {
     var window = new ShowPopupExample();
     window.position = new Rect(Screen.width / 2, Screen.height / 2, 250, 50);
     window.ShowUtility();
 }