示例#1
0
 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();
     }
 }
示例#2
0
 public void OnClic(PlayerLayerNavButton button)
 {
     ClicOnButton(button, button.GetMethod());
 }
示例#3
0
 public IEnumerator OnClose()
 {
     m_BG.set_blocksRaycasts(true);
     m_curentButton = null;
     yield return(PlayAnimation(m_animationDirector.GetAnimation("Close")));
 }