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; }
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; }