private void OnDestroy()
 {
     mainButton.onClick.RemoveAllListeners();
     toggleOpenEntityListInputAction.OnTriggered -= OnPointerClick;
     BIWUtils.RemoveEventTrigger(inspectorButtonEventTrigger, EventTriggerType.PointerEnter);
     BIWUtils.RemoveEventTrigger(inspectorButtonEventTrigger, EventTriggerType.PointerExit);
 }
Beispiel #2
0
 private void OnDestroy()
 {
     mainButton.onClick.RemoveAllListeners();
     toggleCatalogInputAction.OnTriggered -= OnPointerClick;
     BIWUtils.RemoveEventTrigger(catalogButtonEventTrigger, EventTriggerType.PointerEnter);
     BIWUtils.RemoveEventTrigger(catalogButtonEventTrigger, EventTriggerType.PointerExit);
 }
Beispiel #3
0
    private void OnDestroy()
    {
        for (int i = 0; i < shortcutsButtons.Length; i++)
        {
            int buttonIndex = i;
            shortcutsButtons[buttonIndex].onClick.RemoveAllListeners();
        }

        for (int i = 0; i < shortcutsEventTriggers.Length; i++)
        {
            int triggerIndex = i;
            BIWUtils.RemoveEventTrigger(shortcutsEventTriggers[triggerIndex], EventTriggerType.Drop);
        }

        quickBar1InputAction.OnTriggered -= OnQuickBar1InputTriggedered;
        quickBar2InputAction.OnTriggered -= OnQuickBar2InputTriggedered;
        quickBar3InputAction.OnTriggered -= OnQuickBar3InputTriggedered;
        quickBar4InputAction.OnTriggered -= OnQuickBar4InputTriggedered;
        quickBar5InputAction.OnTriggered -= OnQuickBar5InputTriggedered;
        quickBar6InputAction.OnTriggered -= OnQuickBar6InputTriggedered;
        quickBar7InputAction.OnTriggered -= OnQuickBar7InputTriggedered;
        quickBar8InputAction.OnTriggered -= OnQuickBar8InputTriggedered;
        quickBar9InputAction.OnTriggered -= OnQuickBar9InputTriggedered;
    }
Beispiel #4
0
 private void OnDestroy()
 {
     BIWUtils.RemoveEventTrigger(dragAndDropEventTrigger, EventTriggerType.Drop);
 }
 private void OnDestroy()
 {
     mainButton.onClick.RemoveListener(OnPointerClick);
     BIWUtils.RemoveEventTrigger(changeModeEventTrigger, EventTriggerType.PointerEnter);
     BIWUtils.RemoveEventTrigger(changeModeEventTrigger, EventTriggerType.PointerExit);
 }