private void Awake() { toggleUIVisibilityInputAction.OnTriggered += OnUIVisiblityToggleActionTriggered; toggleControlsVisibilityInputAction.OnTriggered += OnControlsToggleActionTriggered; toggleChangeCameraInputAction.OnTriggered += OnChangeModeActionTriggered; toggleTranslateInputAction.OnTriggered += OnTranslateActionTriggered; toggleRotateInputAction.OnTriggered += OnRotateActionTriggered; toggleScaleInputAction.OnTriggered += OnScaleActionTriggered; toggleResetInputAction.OnTriggered += OnResetActionTriggered; toggleDuplicateInputAction.OnTriggered += OnDuplicateActionTriggered; toggleDeleteInputAction.OnTriggered += OnDeleteActionTriggered; toggleOpenEntityListInputAction.OnTriggered += OnEntityListActionTriggered; toggleSceneInfoInputAction.OnTriggered += OnSceneLimitInfoControllerChangeVisibilityTriggered; toggleCatalogInputAction.OnTriggered += OnSceneCatalogControllerChangeVisibilityTriggered; entityListBtn.onClick.AddListener(() => OnEntityListChangeVisibilityAction?.Invoke()); foreach (Button closeEntityListBtn in closeEntityListBtns) { closeEntityListBtn.onClick.AddListener(() => OnEntityListChangeVisibilityAction?.Invoke()); } catalogBtn.onClick.AddListener(() => OnSceneCatalogControllerChangeVisibilityAction?.Invoke()); closeCatalogBtn.onClick.AddListener(() => OnSceneCatalogControllerChangeVisibilityAction?.Invoke()); changeModeBtn.onClick.AddListener(() => OnChangeModeAction?.Invoke()); firstPersonChangeModeBtn.onClick.AddListener(() => OnChangeModeAction?.Invoke()); extraBtn.onClick.AddListener(() => OnExtraBtnsClick?.Invoke()); controlsBtn.onClick.AddListener(() => OnControlsVisibilityAction?.Invoke()); closeControlsBtn.onClick.AddListener(() => OnControlsVisibilityAction?.Invoke()); hideUIBtn.onClick.AddListener(() => OnChangeUIVisbilityAction?.Invoke()); translateBtn.onClick.AddListener(() => OnTranslateSelectionAction?.Invoke()); rotateBtn.onClick.AddListener(() => OnRotateSelectionAction?.Invoke()); scaleBtn.onClick.AddListener(() => OnScaleSelectionAction?.Invoke()); resetBtn.onClick.AddListener(() => OnResetSelectedAction?.Invoke()); duplicateBtn.onClick.AddListener(() => OnDuplicateSelectionAction?.Invoke()); deleteBtn.onClick.AddListener(() => OnDeleteSelectionAction?.Invoke()); sceneObjectCatalogController.OnCatalogItemSelected += (x) => OnCatalogItemSelected?.Invoke(x); catalogGroupListView.OnResumeInput += () => OnResumeInput?.Invoke(); catalogGroupListView.OnStopInput += () => OnStopInput?.Invoke(); tutorialBtn.onClick.AddListener(() => OnTutorialAction?.Invoke()); publishBtn.onClick.AddListener(() => OnPublishAction?.Invoke()); logOutBtn.onClick.AddListener(() => OnLogoutAction?.Invoke()); }
private void OnTranslateActionTriggered(DCLAction_Trigger action) { OnTranslateSelectionAction?.Invoke(); }