Beispiel #1
0
    public override void DragEffectEndIn()
    {
        CookingStep addStep = drag.GetComponent <CookingStep>(); // 被拖的步骤

        /* foreach(var step in addStep.Control) // 依赖addStep且在时间条上的自动弹回菜单栏
         * {
         *  if(!step.DependNotSatisfied.Exists(t => t.name == addStep.name))
         *  {
         *      step.DependNotSatisfied.Add(addStep);
         *      step.transform.SetParent(transform);
         *      step.GetComponent<Dragable>().SetDragSize(unitSize);
         *      step.canDrag = false;
         *      step.Belong = null;
         *      step.GetComponent<Dragable>().ImageChange();
         *  }
         * } */
        drag.transform.SetParent(transform);
        drag.GetComponent <CookingStep>().Belong = null;
        drag.SetDragSize(unitSize);
        drag = null;
    }