示例#1
0
 void Start()
 {
     m_RadialMenuUI = this.InstantiateUI(m_RadialMenuPrefab.gameObject).GetComponent <RadialMenuUI>();
     m_RadialMenuUI.alternateMenuOrigin = alternateMenuOrigin;
     m_RadialMenuUI.actions             = menuActions;
     m_RadialMenuUI.Setup();
     m_RadialMenuUI.visible = m_Visible;
 }
示例#2
0
 void Start()
 {
     m_RadialMenuUI = this.InstantiateUI(m_RadialMenuPrefab.gameObject).GetComponent <RadialMenuUI>();
     m_RadialMenuUI.alternateMenuOrigin = alternateMenuOrigin;
     m_RadialMenuUI.actions             = menuActions;
     this.ConnectInterfaces(m_RadialMenuUI);             // Connect interfaces before performing setup on the UI
     m_RadialMenuUI.Setup();
     m_RadialMenuUI.buttonHovered += OnButtonHovered;
     m_RadialMenuUI.buttonClicked += OnButtonClicked;
 }