-
Notifications
You must be signed in to change notification settings - Fork 3
/
MultipleWindow.cs
27 lines (23 loc) · 1017 Bytes
/
MultipleWindow.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using UnityEngine;
public class MultipleWindow : GeneralUISystemWithNavigation
{
protected override void InitializeUI()
{
Transform layout = UIManager.Instance.InstantiateLayout(init.Group, nameof(MultipleWindow));
WindowUI window1 = NewWindow("Window 1", layout, DefaultSetup);
AddButton("Button from Window 1", window1);
AddButton("Button from Window 1", window1);
AddButton("Button from Window 1", window1);
window1.AutoResize();
WindowUI window2 = NewWindow("Window 2", layout, DefaultSetup);
AddButton("Button from Window 2", window2);
AddButton("Button from Window 2", window2);
AddButton("Button from Window 2", window2);
window2.AutoResize();
WindowUI window3 = NewWindow("Window 3", layout, DefaultSetup);
AddButton("Button from Window 3", window3);
AddButton("Button from Window 3", window3);
AddButton("Button from Window 3", window3);
window3.AutoResize();
}
}