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);
     }
 }
Beispiel #2
0
 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);
         }
     }
 }
Beispiel #3
0
 protected override void Awake()
 {
     btnClose = GetComponent <WorldMapController>().BtnClose.GetComponent <InputMappedButton>();
     base.Awake();
 }