Esempio n. 1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Esempio n. 2
0
    public static void OpenWindow()
    {
        PrefabMaker mywindow = (PrefabMaker)GetWindow(typeof(PrefabMaker));

        mywindow.wantsMouseMove = true;
        mywindow.Show();
    }
Esempio n. 3
0
    public static void OpenWindow()
    {
        PrefabMaker mywindow = (PrefabMaker)GetWindow(typeof(PrefabMaker));

        mywindow.wantsMouseMove = true;
        mywindow.Show();
        var w = GetWindow <PrefabMaker>();

        w.myStyle           = new GUIStyle();
        w.myStyle.fontStyle = FontStyle.Bold;
        w.myStyle.alignment = TextAnchor.MiddleCenter;
        w.myStyle.fontSize  = 20;
        w.myStyle.wordWrap  = true;
    }