/// <summary> /// Go to mode selection menu /// </summary> public void GoToModeMenu() { //UI currentMenu.DeselectAll(); currentMenu.enabled = false; currentMenu.FadeButtons(false, MENU_TRANSITION_DURATION); currentMenu.transform.DOMoveX(activeMenuPosition.x - MENU_DISTANCE, MENU_TRANSITION_DURATION); currentMenu = ModeMenu; currentMenu.SelectFirst(); currentMenu.FadeButtons(true, MENU_TRANSITION_DURATION); currentMenu.transform.DOMoveX(activeMenuPosition.x, MENU_TRANSITION_DURATION).onComplete += () => currentMenu.enabled = true; //BACKGROUNDS MenuBackgrounds.transform.DOMoveY(BACKGROUNDS_DISTANCE * NORMAL_MODE_INDEX, MENU_TRANSITION_DURATION); BackUI?.transform.DOScale(1, MENU_TRANSITION_DURATION).SetEase(Ease.OutCubic); }