示例#1
0
        public void TweenPanel(EquipmentOptionRecipeView view)
        {
            var rect = view.transform as RectTransform;

            panelTweener.SetBeginRect(rect);
            panelTweener.Play();
            animator.Play("Show");
            animator.speed = 0f;
        }
        private void OnSelectOption(RecipeCellView recipeView, EquipmentOptionRecipeView optionRecipeView)
        {
            SelectedSubRecipeId = optionRecipeView.SubRecipeId;
            equipmentOptionRecipe.gameObject.SetActive(false);
            SetData(recipeView.EquipmentRowData, SelectedSubRecipeId);
            confirmArea.SetActive(true);
            TweenCellView(recipeView, equipmentOptionRecipe.KillCellViewTween);

            if (materialPanel is ElementalCombinationMaterialPanel panel)
            {
                Widget.Find <Combination>().OnTweenRecipe();
                panel.TweenPanel(optionRecipeView);
            }
        }