Example #1
0
 public void OnDragEnd()
 {
     if (First_Paturu != null)
     {
         var length = DeleteList.Count;
         //DestoySize = length;
         if (length >= 3)
         {
             DestoyObjs = new GameObject[length];
             debug(length);
             DestoySize = length;
             for (var i = 0; i < length; i++)
             {
                 CScorecount.PaturuMathCount(DeleteList[i].name);
                 DestoyObjs[i] = DeleteList[i];
                 if (DeleteList[i].name == PaturuControy.PazuruTagAndName.FireName)
                 {
                     hitObjV3Pos = DeleteList[i].transform.position;
                 }
                 //Destroy(asdasd);
             }
             if (SkillCostManager.Skill_Control.Water6Swich && SkillCostManager.GetSkill6Code() != null)
             {
                 SkillCostManager.GetSkill6Code().BackByMouseKeyUp(DestoyObjs);
             }
             Drag  = false;
             drag2 = false;
         }
         else
         {
             for (int i = 0; i < DeleteList.Count; i++)
             {
                 Smaller(DeleteList[i]);
                 TagModori(DeleteList[i]);
             }
             SwichType = false;//2019,10.6
             DeleteList.Clear();
             drag2 = true;
             if (SkillCostManager.GetSkill6Code() != null)
             {
                 SkillCostManager.GetSkill6Code().BackAllChange2();
             }
         }
         PaturuControy.ColorUpadateCtr = false;
         //PaturuControy.Skill.Water6Swich = false;
         PaturuControy.SetColorAllLight(Paturu.TagName0, Paturu.TagName1, Paturu.TagName2);
         //CScorecount.SetAllSkillCoreCountZero();
         //if (Tag_ColorControlName2!=null)
         //PaturuControy.sethitobjCancel(Tag_ColorControlName2);
         //Debug.Log(Tag_ColorControlName2);
         First_Paturu = null;
         Last_Paturu  = null;
         CLine.LineSwitch();
         CLine.destroyallNode();
         Back = false;
         //drag2 = true;
         //Debug.Log(PaturuControy.Skill.Water6Swich);
     }
 }