public void Initialize(ButtonClickListener accept, ButtonClickListener cancel)
 {
     btnAccept = ((accept != null) ? accept.GetComponent <InputMappedButton>() : null);
     btnCancel = ((cancel != null) ? cancel.GetComponent <InputMappedButton>() : null);
     if (btnAccept == null || btnCancel == null)
     {
         btnAccept = ((btnAccept != null) ? btnAccept : btnCancel);
         btnCancel = ((btnCancel != null) ? btnCancel : btnAccept);
     }
 }
 private void handleButtonInput(InputMappedButton button, ButtonInputResult buttonInput = null)
 {
     if (button != null)
     {
         MemberLockedTrayInputButton componentInChildren = button.GetComponentInChildren <MemberLockedTrayInputButton>();
         InputMappedButton           inputMappedButton   = button;
         if (componentInChildren != null && componentInChildren.IsLocked && componentInChildren.MemberLock != null)
         {
             inputMappedButton = componentInChildren.MemberLock.GetComponent <InputMappedButton>();
         }
         if (inputMappedButton != null)
         {
             inputMappedButton.HandleMappedInput(buttonInput);
         }
     }
 }
Example #3
0
 protected override void Awake()
 {
     btnClose = GetComponent <WorldMapController>().BtnClose.GetComponent <InputMappedButton>();
     base.Awake();
 }