Exemple #1
0
 private void OnPointerEnter(GameSelectionButton button)
 {
     m_hightlightedButton = button;
     for (int i = 0; i < m_buttons.Length; i++)
     {
         GameSelectionButton obj = m_buttons[i];
         obj.anotherButtonIsHightlighted = (obj != m_hightlightedButton);
     }
 }
Exemple #2
0
 private void OnPointerExit(GameSelectionButton button)
 {
     if (!(m_hightlightedButton != button))
     {
         for (int i = 0; i < m_buttons.Length; i++)
         {
             m_buttons[i].anotherButtonIsHightlighted = false;
         }
         m_hightlightedButton = null;
     }
 }
Exemple #3
0
 private unsafe void Start()
 {
     //IL_0032: Unknown result type (might be due to invalid IL or missing references)
     //IL_003c: Expected O, but got Unknown
     for (int i = 0; i < m_buttons.Length; i++)
     {
         int index = i;
         GameSelectionButton          obj = m_buttons[index];
         _003C_003Ec__DisplayClass4_0 _003C_003Ec__DisplayClass4_;
         obj.get_onClick().AddListener(new UnityAction((object)_003C_003Ec__DisplayClass4_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         obj.onPointerEnter = (Action <GameSelectionButton>)Delegate.Combine(obj.onPointerEnter, new Action <GameSelectionButton>(OnPointerEnter));
         obj.onPointerExit  = (Action <GameSelectionButton>)Delegate.Combine(obj.onPointerExit, new Action <GameSelectionButton>(OnPointerExit));
     }
 }