private void Start()
 {
     dataEntityCollection            = Service.Get <CPDataEntityCollection>();
     propService                     = Service.Get <PropService>();
     trayInputButton                 = GetComponentInParent <TrayInputButton>();
     memberLockedButton              = GetComponent <MemberLockedTrayInputButton>();
     trayInputButton.OnStateChanged += onTrayInputButtonStateChanged;
 }
예제 #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);
         }
     }
 }