Skip to content

Commit 3a64b94

Browse files
committed
feat: integrate example with new features
1 parent a787b6b commit 3a64b94

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Samples~/Demo/Scripts/GameManager.cs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,22 @@ public enum ETeam : int
1515

1616
public class GameManager : MonoBehaviour
1717
{
18+
private SharedContextualMenu<Unit> m_contextualMenu = new SharedContextualMenu<Unit>();
19+
20+
// Uncomment to test GlobalContextMenu
21+
//private GlobalContextualMenu<Unit> m_contextualMenu = new GlobalContextualMenu<Unit>();
22+
private List<Unit>[] m_teamsUnits = new List<Unit>[(int) ETeam.TeamCount];
23+
1824
public Camera mainCamera;
1925
private UnitSelection<Unit> m_unitSelection = new UnitSelection<Unit>();
20-
private ContextualMenu<Unit> m_contextualMenu = new ContextualMenu<Unit>();
21-
private List<Unit>[] m_teamsUnits = new List<Unit>[(int) ETeam.TeamCount];
2226
private bool m_isSelecting;
2327
private EventSystem m_eventSystem;
24-
25-
[System.Serializable]
26-
public struct TaskUIElement
27-
{
28-
public string task;
29-
public Button button;
30-
}
31-
28+
private int m_layerGround;
29+
3230
public Toggle btnMove;
3331
public Button btnStop;
3432

3533
public Action<Vector3> RequestPosition { get; set; }
36-
public int m_layerGround;
3734

3835
#region Singleton
3936

0 commit comments

Comments
 (0)