Example #1
0
 protected unsafe override void Awake()
 {
     //IL_0097: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a1: Expected O, but got Unknown
     //IL_00b8: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c2: Expected O, but got Unknown
     //IL_00f0: Unknown result type (might be due to invalid IL or missing references)
     //IL_00fa: Expected O, but got Unknown
     m_defaultButton.get_gameObject().SetActive(false);
     foreach (int availableFightDefId in m_availableFightDefIds)
     {
         MatchMakingButton btn = Object.Instantiate <MatchMakingButton>(m_defaultButton, m_defaultButton.get_transform().get_parent());
         btn.fightDefId = availableFightDefId;
         btn.StopWait();
         btn.get_gameObject().SetActive(true);
         _003C_003Ec__DisplayClass26_0 _003C_003Ec__DisplayClass26_;
         btn.button.get_onClick().AddListener(new UnityAction((object)_003C_003Ec__DisplayClass26_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         btn.forceAiBUtton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     }
     m_returnButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_godChoiceDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_weaponsDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_decksDropDown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     InitGodsChoice();
 }
Example #2
0
 private void OnReturnClicked()
 {
     if (m_waitingButton != null)
     {
         onCancelRequested?.Invoke();
         m_waitingButton = null;
     }
     onReturnClicked?.Invoke();
 }
Example #3
0
 private void OnPlayButtonClicked(MatchMakingButton btn)
 {
     if (m_waitingButton != null)
     {
         onCancelRequested?.Invoke();
         m_waitingButton.StopWait();
         m_waitingButton = null;
     }
     else
     {
         btn.StartWait();
         onPlayRequested?.Invoke(btn.fightDefId, ForcedLevel);
         m_waitingButton = btn;
     }
 }