Example #1
0
 public void AddThis()
 {
     OpenSql();
     EquipM.Add(mySql, gameObject, isStatic, isHoverOutline, isClickFlashing);
     //Debug.Log("更新");
     //CloseSql();
 }
Example #2
0
 public static void DebugEquip(EquipM equip)
 {
     U_Debug.LogStr(
         equip.id + "   " + equip.goId + " " + equip.name + "  " + equip.tag + "  " + equip.layer
         + "  " + equip.isStatic + "  " + equip.isHoverOutline + "  " + equip.isClickFlashing
         + "  " + equip.oriPos + "  " + equip.oriLocalPos
         );
 }
Example #3
0
 public void DebugChildren()
 {
     OpenSql();
     foreach (Transform tran in transform.GetComponentsInChildren <Transform>())
     {
         EquipM.DebugObj(mySql, tran.gameObject);
     }
 }
Example #4
0
 public void DebugSon()
 {
     OpenSql();
     foreach (Transform tran in transform)
     {
         EquipM.DebugObj(mySql, tran.gameObject);
     }
 }
Example #5
0
 public void DelectSon()
 {
     OpenSql();
     foreach (Transform tran in transform)
     {
         EquipM.Delect(mySql, tran.gameObject);
     }
     Debug.Log("删除");
 }
Example #6
0
 public void AddChildren()
 {
     OpenSql();
     foreach (Transform tran in transform.GetComponentsInChildren <Transform>())
     {
         EquipM.Add(mySql, tran.gameObject, isStatic, isHoverOutline, isClickFlashing);
     }
     Debug.Log("更新");
     CloseSql();
 }
Example #7
0
 public void AddSon()
 {
     OpenSql();
     foreach (Transform tran in transform)
     {
         EquipM.Add(mySql, tran.gameObject, isStatic, isHoverOutline, isClickFlashing);
         Debug.Log("添加数据:" + mySql.GetTableRowStr(DcConf.Ins.equipTable));
     }
     Debug.Log("更新");
     CloseSql();
 }
Example #8
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.U))
        {
            EquipM.Update(mySql, tar, "isStatic", true.ToTinyint());
        }
        if (Input.GetKeyDown(KeyCode.A))
        {
            EquipM.Add(mySql, tar, isStatic, isHoverOutline, isClickFlashing);
        }
        if (Input.GetKeyDown(KeyCode.R))
        {
            EquipM.Delect(mySql, tar);
        }
        if (Input.GetKeyDown(KeyCode.D))
        {
            EquipM.DebugObj(mySql, tar);
        }
        if (Input.GetKeyDown(KeyCode.S))
        {
            //EquipM e = EquipM.FindObj(mySql,
            //    new string[] { "isStatic", "isHoverOutline", "isClickFlashing" },
            //    new string[] { "=", "=", "=" },
            //    new string[] { "1", "1", "1" });
            //    Debug.Log(e.name + "  " + e.oriLocalPos);



            List <EquipM> es = EquipM.FindObjS(mySql,
                                               new string[] { "isStatic", "isHoverOutline", "isClickFlashing" },
                                               new string[] { "=", "=", "=" },
                                               new string[] { "0", "1", "1" });

            foreach (EquipM e in es)
            {
                Debug.Log(e.name + "  " + e.oriLocalPos);
            }
        }
    }
Example #9
0
 public void DelectThis()
 {
     OpenSql();
     EquipM.Delect(mySql, gameObject);
     Debug.Log("删除");
 }
Example #10
0
 public void DebugThis()
 {
     OpenSql();
     EquipM.DebugObj(mySql, gameObject);
 }