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