private void ClicOnButton(PlayerLayerNavButton button, Action action) { if (!(m_curentButton == button)) { m_curentButton = button; foreach (PlayerLayerNavButton item in m_navButton) { item.OnDeselect(); } button.OnValidate(); action(); } }
public void OnClic(PlayerLayerNavButton button) { ClicOnButton(button, button.GetMethod()); }
public IEnumerator OnClose() { m_BG.set_blocksRaycasts(true); m_curentButton = null; yield return(PlayAnimation(m_animationDirector.GetAnimation("Close"))); }