public void AddThis() { OpenSql(); EquipM.Add(mySql, gameObject, isStatic, isHoverOutline, isClickFlashing); //Debug.Log("更新"); //CloseSql(); }
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 ); }
public void DebugChildren() { OpenSql(); foreach (Transform tran in transform.GetComponentsInChildren <Transform>()) { EquipM.DebugObj(mySql, tran.gameObject); } }
public void DebugSon() { OpenSql(); foreach (Transform tran in transform) { EquipM.DebugObj(mySql, tran.gameObject); } }
public void DelectSon() { OpenSql(); foreach (Transform tran in transform) { EquipM.Delect(mySql, tran.gameObject); } Debug.Log("删除"); }
public void AddChildren() { OpenSql(); foreach (Transform tran in transform.GetComponentsInChildren <Transform>()) { EquipM.Add(mySql, tran.gameObject, isStatic, isHoverOutline, isClickFlashing); } Debug.Log("更新"); CloseSql(); }
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(); }
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); } } }
public void DelectThis() { OpenSql(); EquipM.Delect(mySql, gameObject); Debug.Log("删除"); }
public void DebugThis() { OpenSql(); EquipM.DebugObj(mySql, gameObject); }